0% found this document useful (0 votes)
179 views

Python Program To Convert Temperature in Celsius To Fahrenheit

This Python program converts a temperature of 37.5 degrees Celsius to its Fahrenheit equivalent. It first multiplies the Celsius value by 1.8, then adds 32 to calculate Fahrenheit. The program then prints the Celsius and Fahrenheit values to show that 37.5 degrees Celsius is equal to 99.5 degrees Fahrenheit.

Uploaded by

local drive
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
179 views

Python Program To Convert Temperature in Celsius To Fahrenheit

This Python program converts a temperature of 37.5 degrees Celsius to its Fahrenheit equivalent. It first multiplies the Celsius value by 1.8, then adds 32 to calculate Fahrenheit. The program then prints the Celsius and Fahrenheit values to show that 37.5 degrees Celsius is equal to 99.5 degrees Fahrenheit.

Uploaded by

local drive
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

# Python Program to convert temperature in

celsius to fahrenheit
# change this value for a different result
celsius = 37.5
# calculate fahrenheit
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to
%0.1f degree Fahrenheit' %
(celsius,fahrenheit))

You might also like