05 Sep Saturday 13:00 Python Practice – 22.09.03.
Question: Use loop to print the following patterns: a. * ** *** **** b. * *** ***** *** * c. 1010101 10101 101 1...
Question: Use loop to print the following patterns: a. * ** *** **** b. * *** ***** *** * c. 1010101 10101 101 1...
Question: Create a loop between 1 to 20. Print “fizz” if the number is divisible by 3 Print “bizz” if the number is divisible by 5 Print “fizzbizz” if a number is divisible by both 3 and 5. Otherwise, print the number itself. Hint: You should use...
Question: Continue coding the program we did in the class, so the program will tell you whether you can pay in the zone: height color zone if<90 red 1 elif<105 blue 1, 2 elif <120 green 1,2,3 elif <135 yellow 1,2,3,4,5 elif <150 purple 4,5 else white 6 Please continue coding the following program: print('Welcome to the adventureland!') h = int(input('Height:')) if h < 90: c = 'red' elif h <...
Question: Please refer to Pirateship class to create a class Enemy: Create one enemy on the screen The enemy will appear at the top of the screen when we start the game The enemy could bounce left-right The enemy will keep move down until to the...
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: Make a pygame window with the following beach ball, the ball could bounce with gravity: ...