Python Program to Convert Temperature from Celsius to Fahrenheit

preview_player
Показать описание
In this Python Programming video tutorial you will learn to write a program to convert temperature from Celsius to Fahrenheit.

First we ask the user to enter the temperature in Celsius and then we multiply it by 1.8. Then we add 32 to the result we get from the multiplication.

For more tutorials visit our website

Learning Lad on social media

#PythonExamplePrograms
Рекомендации по теме
Комментарии
Автор

temp_cel = input('Enter temperature: ')
fahren_temp = (float(temp_cel) * 1.8) + 32
print(float(fahren_temp))

People_Stories
Автор

A=celsius = int (input ("Enter celsius:"))❤❤❤❤

dhruvgamerz
Автор

Create two functions, one is Celsius to Fahrenheit Converter and
other one is for Fahrenheit to Celsius. There must be default values for constant defined
in the function. See the example for Area of Circle Computation. The program should be
able to ask the user to continue or terminate.

jannamaevillanueva
Автор

Why we add %.2f And what if we don't use it ?

ayushnaigaonkar
Автор

Thanks very much.pleas I didn't understand the code on line 5. How did you do that

emmanuelchinaza
Автор

What if we write print("fahrenheit")

shashankdwivedi
Автор

In my python there is no seperate section for seeing results so how will i get to se the results by pressing enter?

ishaqureshi
Автор

c= input("temperature in cels")
fahren = (c*1.8)+32
print (fahren)

Belleza
Автор

can you modify it so that if one puts it changes directly according to the user choice

japhethachimba
Автор

Can we use the same %.2f to Fahrenheit to Celsius?

neelakandanv
Автор

what if you had to do it in column with list of numbers

danforddulnuan
Автор

Sir plz make more videos on Python . thank you 😊

Codeshub
Автор

i'm so confused to say but wtf is ChildProcessError at 0:53

hadesplaygames
Автор

Bruhh why you used % as well as .2f there

saritaprasad
Автор

C = (float(input("What is the degrees C right now? ")))
def Ctof(C):
return (C * 1.8) + 32
def Ftoc(F):
return (F / 1.8) - 32
F = (C * 1.8) + 32
F = Ctof(C)
print(C, "degrees C is", F, "degrees F")

I tried it with subroutines

clunczgd
Автор

while True:
    try:

        break
    except ValueError:




print(f'\n{round(celsius, 2)} Celcius = {round(fahrenheit, 2)} Fahrenheit')

# Output example:
# 24.0 Celcius = 75.2 Fahrenheit

petrockspiracy