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: ...
Question: Spamway Inc. maintains a network of zombie computers to solicit and collect orders for its various fine products. Each zombie computer is responsible for zero or more subordinate zombies that it coordinates in these activities. Spamway uses a simple communication strategy among its zombies for transmitting...
Question 1: Use TKinter to create 6 buttons as following picture: Question 2: Use TKinter to create login window as following picture: ...
Question: The term “code monkey” is sometimes used to refer to a programmer who doesn’t know much about programming. This is unfair to monkeys, because contrary to popular belief, monkeys are quite smart. They have just been misunderstood. This may be because monkeys do not speak...
Question 1:(please use function that return a value) Write a program to display information to a driver based on his/her speed according to the following table: km/h over the limit Fine 1 to 20 $100 21 to 30 $270 31 or above $500 Sample Input 1: Enter the speed limit: 40 Enter the recorded speed of the...