sorted(), sum() Sorts the input list and then calculates the sum of all elements in the list. 2024-11-30 15:10:15 Function 4 views
Shuffles the elements of a list in place using the Fisher-Yates algorithm. Shuffles the elements of a list in place using the Fisher-Yates algorithm. 2024-11-30 15:10:15 List scrambled 3 views
os, zipfile, json, datetime This function compresses all files in the specified directory into a zip file and generates a JSON file containing metadata. 2024-11-30 15:10:15 File compression 3 views
Built-in function sorted, lambda expression, exception handling Sorts a list `arg1` based on the values in the dictionary `arg2`. If `arg2` is missing a key from `arg1`, a ValueError is raised. 2024-11-30 15:10:14 Function 8 views
os, re This function will traverse the given root directory and its subdirectories, and return all file paths that match the regular expression pattern. 2024-11-30 15:10:14 Function 3 views
list, sorting (sorted) This function sorts the input list and returns the sorted list. 2024-11-30 15:10:13 Function 4 views
str, isinstance, ValueError Determines if both strings are composed only of lowercase letters. 2024-11-30 15:10:13 Function 5 views
random This function takes a list as input and uses the shuffle method from the random library to randomly rearrange the elements of the list. 2024-11-30 15:10:13 Function 4 views
random This function uses the Fisher-Yates shuffle algorithm to randomly shuffle the elements of the given list. 2024-11-30 15:10:12 Function 5 views
os, re This function takes two arguments, the first is the file path, and the second is a regular expression pattern. The function returns all strings that match the regular expression in the file. 2024-11-30 15:10:12 Function 4 views