Python Questions
Python Questions
Question 2:
Question 3:
Write a program to input 2 floating point numbers & print their average.
Question 4:
Question 5:
Write a program to input user’s first name & print its length.
Question 6:
Question 7:
Question 9:
Question 10:
Write a program to ask the user to enter names of their 3 favourite movies & store them in a
list.
Question 11:
WAP to check if a list contains a palindrome of elements. (Hint: use copy( ) method)
[1, 2, 3, 2, 1] [1,”abc”,”abc”,1]
Question 12:
Write a program (WAP) to count the number of students with the “A” grade in the following
tuple.
[“c”,”d”,”a”,”a”,”b”,”b”,”a”]
Store the above values in a list & sort them from “A” to “D”
Question 13:
Question 14:
WAP to enter marks of 3 subjects from the user and store them in a dictionary. Start with
an empty dictionary & add one by one. Use subject name as key & marks as value.
Figure out a way to store 9 & 9.0 as separate values in the set.
(You can take help of built-in data types)