TORONTO KIDS COMPUTER CLUB | Tuesday 17:00 Python Practice – 04 20.10.06.
18436
post-template-default,single,single-post,postid-18436,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

Tuesday 17:00 Python Practice – 04 20.10.06.

09 Oct Tuesday 17:00 Python Practice – 04 20.10.06.

Question 1.

Use EasyGui to write a program to convert temperatures from Fahrenheit to Celsius. The formula for that is: Celsius = 5 / 9 * (Fahrenheit – 32). Use GUI input and output. You need to create a easygui enterbox to ask Fahrenheit, then use message box to show the Celsius degree. (Hint: the input you get from the enter box is a string, so you need float() to convert it into decimal number.


Question 2:
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’


Class Review:

Review 1 – easygui:


Review 2 – Sample code using if:

correct = '1234'
pwd = input('Please enter your password:')

if pwd == correct:
    print('Welcome agent 008, FBI access granted!')
No Comments

Sorry, the comment form is closed at this time.