17 Oct Aurora Saturday 16:30 Python Homework 20.10.17.
Question: Continue to program the code so the tkinter window would display as below: ...
Question: Continue to program the code so the tkinter window would display as below: ...
Question: We have made class Laser and showed you how to load different image to switch costumes. Please made a class Planet, it will contains following methods: __init__(self) - It initials the Planet from a random centerx position, and top = -1000 Since planets has 3 possible images(you could...
Question 1: Use while loop to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this: Sample Input: Which multiplication table would you like? 7 How high do you want to go? 12 Sample Output: Here’s your...
Question: Create the following * pattern image base on your input Hint: Remember when we multiply a string by a number, the string is repeated the number times. >>> '*' * 10 '**********' Also you would need 2 for loops to solve the question Sample Input 1: 3 Sample Output 1: *** ** * * ** *** Sample Input 2: 5 Sample Output...
Question 1: Create the following * pattern image base on your input Hint: Remember when we multiply a string by a number, the string is repeated the number times. >>> '*' * 10 '**********' Also you would need 2 for loops to solve the question Sample Input 1: 3 Sample Output 1: *** ** * * ** *** Sample Input 2: 5 Sample...
Question: Continue to program the code so the tkinter window would display as below: ...
Question: Make a list by taking 10 input from user. Now delete all repeated elements of the list. Sample Input: 1,2,3,2,1,3,12,12,32 Sample Output: 1,2,3,12,32 ...
Question 1: We have a list of following: zoo = ['monkeys', 'tigers', 'pandas', 'penguins', 'giraffes', 'hippos', 'bears'] how to retrieve a slice of list zoo, so you can get the following result? ['monkeys', 'pandas', 'giraffes', 'bears'] Question 2: from the same list of zoo in the question 1, how to retrieve...
Question 1: A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20 percent off purchases of greater than $10. Write a program that asks the purchase price and displays the discount (10% or 20%) and the final price. Sample Input...
Question 1: Use TKinter to create following window with three buttons: the “blue” button will print “blue” in the python shell screen the “red” button will print “red” in the python shell screen if left mouse button click the “color” button will print “blue” in the...