Header Ads

Python - WAP to Convert Temperature from Celcius to Fahrenheit in Python - 14

This is a Python Code to Convert any value of Temperature in Celcius into Fahrenheit (ht) of any given Number using Python.

Source Code:
#!/usr/bin/Python

while True:

    celsius = int(input("Enter Temperature in Celcius : "))

    fahrenheit = (celsius * 1.8) + 32

    print ("The Temperature in Fahrenheit :", round(fahrenheit, 2))

    print ("CodeGig.org")
    if (input(" To Continue 'y' : ") == 'y'):
        continue
    else:
        break

Program Output:


No comments