Friday, 18 February 2022

Python program to convert Celsius temps into Fahrenhit

 

CODE

#convert.py
#Python program to convert Celsius temps into Fahrenhit

def main():
    print("This program convert Celsius temps into Fahrenhit")
    celsius=eval(input("What is the Celsius temprarure outside now ?"))
    fahrenhit = 9/5 * celsius + 32
    print("Aha , I know temprature is ", fahrenhit , "degrees fahrenhit.")

main()


NOTE : save above file as convert.py


SCREENSHOT

No comments:

Post a Comment