Jan-20-2017, 06:41 PM
you need to use the name from the loop in the calculations:
def main(): print("This program computes and prints a table") print("of Celsius temperatures and the Fahrenheit equivalent") print("every 10 degrees from 0C to 100C") input("Press key to begin...")) for celsius in range (0, 101, 10): fahrenheit = 9/5 * celsius + 32 print("The temperature is", fahrenheit, "degrees Fahrenheit.") main()