Professional Documents
Culture Documents
FUNCTIONS
FUNCTIONS
Functions-Lists
1. Write a program using function to count the number of elements in the list.
2. Write a program using function to remove an empty element from the list.
3. Write a program using function to display all the elements from the list which are
divisible by5.
Functions-Strings
1. Write a program using functions to reverse a given string.
2. Write a program using functions to count the vowels and consonants in a given string.
4. Write a program using functions to count the occurrence of each character in a word.
Functions-Dictionaries
1. Write a program using function to check if a given key is present in the dictionary or
not.
4. Write a program using function to find the sum of the values in the dictionary.