Question 1:Ask user to give name and marks of 10 different students. Store them in dictionary.
Question 2:Count the number of occurrence of each letter in word "MISSISSIPPI". Store count of every letter with the letter in a dictionary.
...
Posted at 00:18h
in
Uncategorized
by admin
Question:
Eric works in a door mat manufacturing company. One day, he designed a new door mat with thefollowing specifications:◦ Mat size must be A x B. (A is an odd natural number, and B is 3 times A.)◦ The design should have ‘WELCOME’ written in...
Question:
Continue with the code in the previous class. Write a method to create a minimum heap....
Question:
You have two strings. Find the number of characters you have to add to make them anagrams of each other.
Sample Input 1:
abc
Abd
Sample Output 1:
2
Sample Input 2:
Abcd
Abc
Sample Output 2:
1
Sample Input 3:
Abcd
A
Sample Output 3:
3...
Posted at 00:35h
in
Uncategorized
by admin
Question:
write a program to ask user about the date(year, month and day), then calculate the day of the year.
Sample input:
Year: 2016
Month: 6
Day: 23
Sample output:
Day of the year: 175
Hint:
You need consider leap years and non leap years, in order to do easier calculation, you may create...
Posted at 00:33h
in
Uncategorized
by admin
Question:
Draw the following picture in the pygame window: (could be different color)
Hint: using pygame.draw.circle
...