Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

Python - Convert Fahrenheit to Celsius.

Article:
Viewed:  684 
Posted On:  29/05/2015 09:57:57 
Here I am going to explain how we can convert Fahrenheit to Celsius in Python. 

 

 Here I am going to explain how we can convert Fahrenheit to Celsius in Python.

Step 1: Open IDLE(Python GUI) in your system.

Step 2 : Type the beloe code and save the code Eg:- I have saved with temprature.py name.

a = input("Enter the temprature in Fahrenheit :" )

b = float(5) * float(a) - 32

c = float(b) / 9

print ("temprature in celsius:",c)
  
Step 3 :
 Open command prompt.

Step 4 : Go to the saved script folder.

Step 5 : Write python <Script name>.py  for execution.(Eg.- python temprature.py)


 1.png

Image 1.



  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us