Posted at 02:41h
in
Uncategorized
by admin
Question 1:(if you did not do this question last week)
Draw the following picture in the pygame window: (could be different color)
Hint: using pygame.draw.circle
Question 2:
Draw below image using pygame. (could using different color)
...
Question:
Write a program to reverse your string input word by word.
Example Input:
How are you, My name is Jack.
Expected Output :
Jack. is name My you, are How
...
Posted at 02:01h
in
Uncategorized
by admin
Question :
Make a function that will allow you to print any name, address, street, city, state or province, zip or postal code, and country in the world. (Hint: It needs seven arguments. You can pass them as individual arguments or as a list.)
Class review:
...
Posted at 04:41h
in
Uncategorized
by admin
Question:
Create a Python class Person with attributes: name and age of type string.
Create a display() method that displays the name and age of an object created via the Person class.
Create a child class Student which inherits from the Person class and which...
Posted at 23:12h
in
Uncategorized
by admin
Question:
Create a Time class and initialize it with hours and minutes.
Make a method addTime which should take two time object and add them. E.g.- (2 hour and 50 min)+(1 hr and 20 min) is (4 hr and 10 min)
Make a method displayTime which...
Question:
Write a program, which will find all such numbers between 1000 and 3000 (both included) such that each digit of the number is an even number, for example, each digit of number 2446 and 2842 is an even number.
The numbers obtained should be printed in...