25 Apr Monday Online Python Homework 04.22.
Question: Use TKinter to create 6 buttons as following picture: ...
Question: Use TKinter to create 6 buttons as following picture: ...
Question: You are given a string . Suppose a character 'a' occurs consecutively n times in the string. Replace these consecutive occurrences of the character 'a' with (n, 'a') in the string. Input Format: A single line of input consisting of the string . Output Format: A single line of...
Question: Modify the calculator code we made in the class, rewrite the following methods in the Calculator class, to make it full functional calculator: def changeOp(self, op): def changeSign(self): def addDecimal(self): def getResult(self): def numberUpdate(self, num): you can download the coding from the following link: please click and...
Question 1: A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team. Question...
Question 1: Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the "PLAY" button. (Scroll down for more hint) You can download the background images from below: The size of...
Question: You are given a string . Suppose a character 'a' occurs consecutively n times in the string. Replace these consecutive occurrences of the character 'a' with (n, 'a') in the string. Input Format: A single line of input consisting of the string . Output Format: A single line of...
Question: 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. ...
Question: Please make some modifications of the program we made in the class. Make ball appears on the top if the ball reaches the bottom, or appears at bottom when the ball reaches the top....
Question: Modify the program we made in the class to: Create Enemy class Add one enemy spaceship to your program The enemy spaceship will keep moving from left to right and right to left side of the screen. You can download all the necessary images from below: ...
Question: As we mentioned in the class, please modify the code below to create simple calculator to: add addition, subtraction, multiplication and division button and calculate accordingly check if the num1 and num2 is valid entry(has to be all digits) show "please select operation" when user...