Built-in Python libraries Calculate the sum of all digits of an integer. 2024-11-30 15:01:27 Function 63 views
random This function generates a random string of a specified length, including both uppercase and lowercase letters and numbers. 2024-11-30 15:01:26 Generate random strings 36 views
Recursion This function calculates the factorial of a non-negative integer, which is defined as n! = n * (n-1) * (n-2) * ... * 1. It uses recursion, where each recursive call decreases n by 1 and multiplies the current result by n. 2024-11-30 15:01:26 Recursive function 29 views
File operations (open, read, write), string concatenation (+), zip object This function merges the content of two files line by line and writes the merged content to a specified output file. 2024-11-30 15:01:26 File processing 35 views
String manipulation This function accepts a string and a format type, then returns the string formatted according to the specified format type. Supported format types include uppercase, lowercase, capitalize, and title case. 2024-11-30 15:01:25 String formatting function 25 views
Built-in function The zip function combines elements from each of the iterables into tuples, returning an iterator. If the iterables are of uneven length, missing values in the shorter iterables will be filled in with fillvalue, which defaults to None. 2024-11-30 15:01:25 Built-in functions 27 views
os, zipfile This function compresses all files in a directory into a single zip file. 2024-11-30 15:01:25 File compression 25 views
list, random This function takes a list as input and returns a new list with the elements shuffled randomly. 2024-11-30 15:01:24 Function 23 views
String concatenation This function takes two string arguments and concatenates them to return a new string. 2024-11-30 15:01:24 String concatenation function 24 views
String manipulation Right-aligns a string within a specified width, padding with a specified character. 2024-11-30 15:01:23 String processing 28 views