St. Britto Hr. Sec. School - Madurai
12th Computer Science Weekly Test - 1 ( Lists, Tuples, Sets and Dictionary )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Write the output for the following code?
-
Write a sort note about sort( ).
-
What are the advantages of Tuples over a list?
-
What will be the output of the following code?
list = [2**x for x in range(5)]
print(list) -
-
Write a note on dictionary comprehension.
-
List out the set operations supported by python.
-
-
How will you change the list elements in Python? Give an example.
-
Write a program to create a list of numbers in the range 1 to 10. Then delete all the even numbers from the list and print the final list.
-
-
Write a program to create a list of numbers in the range 1 to 10. Then delete all the odd numbers from the list and print the final list.
-
Write a python program to count the number of employees earning more than 1 lakh per annum. The monthly salaries of n number of employees are given.
-
-
Explain remove(), pop() and dear() used in list with an example.