1. Engineering
  2. Computer Science
  3. open textbook page 53 programming excises 1 modify the convertpy...

Question: open textbook page 53 programming excises 1 modify the convertpy...

Question details

Open textbook Page 53: Programming Excises 1: Modify the convert.py to print an intro. Programming Excises 3: Modify the convert.py to loop 5 times with different inputs before quitting, name it as: convert_v2.py. Run it to see what the result is.

Modify the convert.py Program:

# convert.py
#     A program to convert Celsius temps to Fahrenheit
# by: Susan Computewell

def main():
    celsius = eval(input("What is the Celsius temperature? "))
    fahrenheit = 9/5 * celsius + 32
    print("The temperature is", fahrenheit, "degrees Fahrenheit.")

main()
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution