TORONTO KIDS COMPUTER CLUB | Wednesday Friday 15:00 Python Practice 20.07.29.
18046

# Wednesday Friday 15:00 Python Practice 20.07.29.

## 30 Jul Wednesday Friday 15:00 Python Practice 20.07.29.

Question 1:
Please using easygui to create the program we made in the class. The enter box will ask you password, if you get the right password, the msgbox will display ‘FBI Access granted’

Question 2:
Create a simple number guessing game. The computer will ask the first user to enter a number. Then the computer will ask the second user to enter another number. If the number second user entered is 2 times of the number of the first user entered. The program will display “Correct!” and “Thank you for playing!”, otherwise, it only shows “Thank you for playing”

```Sample Input 1:
Please enter the first number: 10
Please enter the second number: 20

Sample Output 1:
Correct!
Thank you for playing!```

```Sample Input 2:
Please enter the first number: 9
Please enter the second number: 15

Sample Output 1:
Thank you for playing!```
• ##### Jesse Shi
Posted at 03:14h, 31 July Reply

import easygui as e
S = e.enterbox(‘Favorite song: ‘)
M = e.enterbox(‘Favorite movie: ‘)
G = e.enterbox(‘Favorite Video Games: ‘)
F = e.enterbox(‘Favorite Food: ‘)
C = e.enterbox(‘Favorite color: ‘)
A = e.enterbox(‘Favorit animal: ‘)
I = e.enterbox(‘Favorite insect: ‘)
B = e.enterbox(‘Favorite book: ‘)
e.msgbox(S + ‘\S’ + \
M + ‘\M’ + \
G + ‘\G’ + \
C + ‘\C’ + \
A + ‘\A’ + \
I + ‘\I’ + \
B + ‘\B’ + \
z)