Computer >> Computer tutorials >  >> Programming >> Python

How to Convert Celsius To Fahrenheit using Python?


To obtain farenheight equivalent of celsius, multiply by 1.8 and add 32

f=c*1.8+32

Following interpreter activity shows the conversion

>>> c=50
>>> f=c*1.8+32
>>> f
122.0