TORONTO KIDS COMPUTER CLUB | Wednesday 17:00 Python Practice – 22.02.09.
20313
post-template-default,single,single-post,postid-20313,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Wednesday 17:00 Python Practice – 22.02.09.

14 Feb Wednesday 17:00 Python Practice – 22.02.09.

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!
No Comments

Sorry, the comment form is closed at this time.