191k views
13 votes
(python) Given the formula for conversion from Celsius to Fahrenheit

Fahrenheit = 1.8 x Celsius + 32
Write a Python program that takes as input a temperature in degrees Celsius, calculates the temperature in degrees Fahrenheit, and display the result as output.

User Kkrambo
by
4.7k points

1 Answer

2 votes

Answer:

initial_temp = float(input('Celsius Temperature: '))

final_temp = (initial_temp * 1.8) + 32

print(f'{final_temp} F')

User Anish Agarwal
by
4.9k points