Write a python program, from the list containing even numbers in the part a, make new list, containing only numbers which are divisible by 4, 6, 8, 10, 3, 5, 7 and 9..
Answers
1. Write a Python program to sum all the items in a list.
2. Write a Python program to multiplies all the items in a list.
3. Write a Python program to get the largest number from a list.
4. Write a Python program to get the smallest number from a list.
5. Write a Python program to count the number of strings where the string length is 2 or more and the first and last character are same from a given list of strings. Go to the editor
Sample List : ['abc', 'xyz', 'aba', '1221']
Expected Result : 2Sample List : ['abc', 'xyz', 'aba', '1221']
Expected Result : 2
6. Write a Python program to get a list, sorted in increasing order by the last element in each tuple from a given list of non-empty tuples. Go to the editor
Sample List : [(2, 5), (1, 2), (4, 4), (2, 3), (2, 1)]
Expected Result : [(2, 1), (1, 2), (2, 3), (4, 4), (2, 5)]
7. Write a Python program to remove duplicates from a list. Go to the editor8. Write a Python program to check a list is empty or not
9. Write a Python program to clone or copy a list.
10. Write a Python program to find the list of words that are longer than n from a given list of words.