Professional Documents
Culture Documents
###########################
b)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
c)
1
1 2
1 2 3
1 2 3 4
4 3 2 1
4 3 2
4 3
4
------------------------------------------
4.a) Write a Python program to count the number of strings where the string length
is 2 or more and, the first and last character are same from a given list of
strings.
Sample List : ['abc', 'xyz', 'aba', '1221']
Expected output : 2
b) Write a Python program that takes two lists and returns True if they have at
least one common member
--------------------------------------------
5. WAP to create a standard quiz application that presents a set of
questions[any 5] to the users (a questionnaire), allows them to answer the same,
after the test, display the correct answer if they are wrong and the final score of
the user.
----------------------------------------
6. WAP to create word guess game, try to maintain some words in a list and
display randomly a word to user with missing letters, ask the user to guess the
word (max 2 guesses only). Finally display the correct word and score.
----------------------------------------------
7. WAP to build currency converter atleast for any 10 types of currency. Accept
source currency, figure and target currency from user(example: dollar,10,euro) and
display the conversion answer(example answer 9.49 euro).