Posted at 02:45h
in
Uncategorized
by admin
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...
Posted at 04:25h
in
Uncategorized
by admin
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...
Posted at 04:22h
in
Uncategorized
by admin
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
...