extension joomla, template joomla,banner extension joomla,jomla slider,slider joomla
Python Program to Convert Celsius To Fahrenheit and vice versa

In this example, we will write a simple program to convert units of measurement from celius to fahrenheit and vice versa in Python. The conversion formula plays an important role in writing the program. Let us see how the formula looks:-

Conversion Formula for Temperature conversion

C = (F – 32) * 5/9

F = (C * 9/5) + 32


To better understand this example, make sure you have knowledge of the following tutorials:-

Python Program to Convert Celsius To Fahrenheit:

The output of the above program is:-

Enter the temperature in celsius: 37
37.00 celsius = 98.60 fahrenheit

Python Program to Convert Fahrenheit to Celsius:

The output of the above program is:-

Enter the temperature in fahrenheit: 97
97.00 fahrenheit = 36.11 celsius


Related Article



destination source:https://www.programming-techniques.com/?p=1437