Introduction to Python Programming
Assignment 2
Submission Date:03.06.2020
1. Write a Python program to swap two elements in a list.
2. Write a Python program for Reversing a List.
3. Write a Python program to Multiply all numbers in the list.
4. Write a Python program to interchange first and last elements in a list
5. Write a Python program to find largest number in a list.
6. Write a Python program to find the sum of all items in a dictionary.
7. Write a Python program for Merging two Dictionaries.
8. Write a Python script to sort (ascending and descending) a dictionary by
value.
9. Write a Python script to check whether a given key already exists in a
dictionary.
10. Write a Python program to remove a key from a dictionary.
11. Write a Python program to create a tuple with different data types.
12. Write a Python program to convert a tuple to a string.
13. Write a Python program to find the repeated items of a tuple.
14. Write a Python program to convert a list of characters into a string.
15. Write a Python program to append a list to the second list.