Python Program to Convert Celsius to Fahrenheit || Tutorial

preview_player
Показать описание
Hello, everyone!
This is a simple Python Program to convert Celsius to Fahrenheit.
Hope you like this video.
Here's the source code:

# the value of celsius
celsius = 34.5

# formula to calculate
fahrenheit = (celsius * 1.8) + 32

# print statement
print('%0.1f degree Celsius = %0.1f degree Fahrenheit' %(celsius, fahrenheit))
Рекомендации по теме