26 Jul Wednesday Friday 15:00 Python Practice 20.07.24.
Posted at 01:58h in Uncategorized 1 Comment
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.)
Write a program that asks for your name, then house number, then street, then city, then province, then postal code (all in EasyGui message boxes). The program should then display a mailing-style full address that looks something like this: (Hint: ‘\n’ is a character for print out a new line)
19 King St.
Jesse ShiPosted at 19:15h, 29 July
>>> name = input(‘What is your name?’)
What is your name?Jesse
>>> houseNumber = input(‘What is your house number?’)
What is your house number?209
>>> street = input(‘What is the name of the street that you live in?’ )
What is the name of the street that you live in?Brentlawn
>>> city = input(‘What is the city that you live in?’)
What is the city that you live in?Winnipeg
>>> province = input (‘What is the province that you live in?’)