Function¶
How To: Basic::Function
Find the max of three numbers
Sum all the numbers in a list
Multiply all the numbers in a list
Reverse a string
Calculate the factorial of a number
Check whether a number is in a given range
Accept a string and calculate the number of upper and lower case letters
Take a List and returns a new List with unique elements
Check the number is prime or not
Print the even numbers from a given list
Check whether a number is perfect or not
Checks whether a passed string is palindrome or not
Print the first N rows of Pascal’s triangle
Check whether a string is a pangram or not
Accept a hyphen-separated words and sort them alphabetically
Create and print a List of square of numbers between 1 and 20 (both included)
Make a chain of function decorators (bold, italic, underline etc.)
Execute a string containing python code
Access a function inside a function
Detect the number of local variables declared in a function