Python Programming Tutorial: Convert Celsius to Fahrenheit

preview_player
Показать описание
Be sure to like, share and comment to show your support for our tutorials.

=======================================
======================================

In this Python tutorial we convert Celsius to Fahrenheit in a Python Program. We first provide a print() statement that says "Convert Celsius to Fahrenheit" then we take a users input change it to a float and then assign it a variable. Then we do the conversion. We take the users input() and times it by 9 then divide it by 5 and add 32 and assign the variable to a variable. Then in the final step we take the conversion and print() it back to the user using Python format() method to add a variable to a string.

If you have any questions about this Python Program Tutorial then leave us a comment we will help you out. Make sure you subscribe since we are always posting new Python tutorials.
Рекомендации по теме
Комментарии
Автор

Thank you so much, man!! Help my assignment out A LOT!

MidwestComet
Автор

print("Convert Celcius to Fahreheit")
cel = float(input("Input temperature in celcius:"))
fah = cel * 9 / 5 + 32
print("The temperature in Fahrenheit is :", (fah))

TrentSovran
Автор

I tried this and many other tutorials I just always get a syntax error or a name error.

supermonky
Автор

Why didn't you use parenthesis? ((celsius * 9/5) + 32) ?

souvikkundu
welcome to shbcf.ru