1.Python Program to Convert Temperature from Celsius to Fahrenheit | Python Fundamentals|Python Code

Опубликовано: 01 Январь 1970
на канале: Grasping Python
436
like

1.Python Program to Convert Temperature from Celsius to Fahrenheit | Python Fundamentals | Python Code

Collect input from the user.
celsius = float(input('Enter temperature in Celsius: '))
calculate temperature in Fahrenheit.
fahrenheit = (celsius * 1.8) + 32.
print('%0.1f Celsius is equal to %0.1f degree Fahrenheit'%(celsius,fahrenheit))