Posted at 02:11h
in
Uncategorized
by admin
Question 1
Make a variable and assign a number to it (any number you like). Then display your variable using print.
Question 2
Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display the new value using print.
Question 3
Make...
Posted at 02:04h
in
Uncategorized
by admin
Question:
Try to add shooting sound in the game using shoot.wav
...
Question 1.
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication table would you like? 5
Sample Output:
Here’s your table:
5 x 1 = 5
5 x 2...
Question 1:
This question involves calculating the value of aromatic numbers which are a combination of Arabic digits and Roman numerals.
An aromatic number is of the form ARARAR…AR, where each A is an Arabic digit, and each R is a Roman numeral. Each pair AR contributes...
Posted at 01:23h
in
Uncategorized
by admin
Question 1:
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:"Peter Pan frames" are a way of decorating text in which every character is framed by a diamond-shaped frame, with frames of neighboring characters interleaving. A Peter Pan frame for one letter looks like this (X is the letter we are framing):
..#...