06 Aug Tuesday 17:00 Python Practice – 22.08.02.
Question: Continue modify the program we made in the class: use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase ...
Question: Continue modify the program we made in the class: use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase ...
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 1: We have a list of following: zoo = ['monkeys', 'tigers', 'pandas', 'penguins', 'giraffes', 'hippos', 'bears'] A. how to retrieve a slice of list zoo, so you can get the following result? ['bears', 'penguins', 'monkeys'] B. how to retrieve a slice of list zoo by using the default value,...
Question 1: Write a program to use easygui enterbox that asks for your name, then street, then city, then province, then postal code (all in easygui message boxes). The program should then display a mailing-style full address that looks something like this: Hint: Do not forget to import easygui in order to...
Question: Because you somehow missed out on having a proper childhood, your friends are now forcing you to play a certain game for the first time – Super Mario Brothers. However, as a result of said missing-out, you find that you hate it. Who would want...