os, zipfile, shutil This function compresses two files into a single zip file. 2024-11-30 15:06:46 File compression 7 views
random, string This function is used to generate a random string of specified length and character set. 2024-11-30 15:06:45 Function 8 views
random, string This function generates a random string of specified length, composed of letters and digits. 2024-11-30 15:06:45 Function 15 views
random This function accepts a list as an argument and shuffles the elements of the list in place using the Fisher-Yates algorithm. 2024-11-30 15:06:45 List shuffling function 10 views
random, string This function generates a random string of specified length. The string is composed of letters and can be in any case. 2024-11-30 15:06:45 Function 9 views
String method zfill This function uses the zfill method to format a number into a string representation with a specified minimum length. If the number is shorter, it is padded with zeros on the left. 2024-11-30 15:06:44 String processing 8 views
List comprehension, sum operator, modulo operator Calculate the sum of all numbers in a list that are divisible by three. 2024-11-30 15:06:44 Function 7 views
str.split(), str.capitalize() Capitalize the first letter of each word in the input sentence. 2024-11-30 15:06:44 String processing 17 views
random, list This function takes a list as an argument and then uses the shuffle method from the random library to randomly shuffle the order of the elements in the list. It returns the shuffled list. 2024-11-30 15:06:44 Function 10 views
zip_longest The zip_longest function is used to combine multiple iterable objects. If an iterable object is shorter, it is filled with the fillvalue. 2024-11-30 15:06:43 Built-in library functions 9 views