Assignment 02 (List, Tuple)
Assignment 02 (List, Tuple)
1. What is a List?
2. What is a Tuple?
3. What is the difference between List and Tuple?
4. Python Program to find the largest element in the list
5. Python program to interchange first and last elements in a list. 6.
Python program to swap two elements in a list
7. Python program to Reverse a List
8. Python program to count occurrences of an element in a list 9.
Python program to find the sum of elements in a list
10. Python program to Multiply all numbers in the list
11. What are the ways to find the length of a list
12. Python program to find the smallest and largest number in a list (Without min-
max function)
13. Python Program to find the area of a circle
14. Take inputs from the user to make a list. Again take one input from the user
and search it in the list and delete that element, if found. Iterate over a list
using for loop.
15. You are given a list of integer elements. Make a new list that will store a square
of elements of the previous list. (With and without list comprehension) i.
Input_list = [2,5,6,12]