1.Write a Python program to find the sum of all elements in a list.
2. Explain the difference between list and tuple with an example.
3. Write a Python program to merge two dictionaries.
4. Write a Python program to find the second largest number in a list.
5. How is a tuple different from a list? Write a Python program to swap two tuples.
6. Write a Python program to count the number of vowels in a string.
7. Write a Python program to get the key with the maximum value in a dictionary.
8. Write a Python program to check if a string is a palindrome.
9. What will be the output?
10. What happens when the following code is executed?
11. Give Output:
12. Write a Python function count_digits(n) that returns the count of digits in a given number n.
13. Write a Python program to count the number of lines in a text file "data.txt".
15. Write a Python program to handle division by zero exception.