Python Program to Convert Celsius To Fahrenheit - Python for AI

Build Python AI tools with practical LLM tutorials. Learn to rewrite search queries, classify text, and use local models in your own projects.

Python Program to Convert Celsius To Fahrenheit

Source Code:

# 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))


Output

Screen-shot

No comments:

Post a Comment