Good morning.. :D
I just remember about my subject study, Physics' Computation. In that subject my lecture teach us about computation in physics using the one of language program, we use Python.
we make some graphics, doing mathematics calculation, etc.
In this article I want to show you how to make Temperature Conversion Program using Python.
1. Firstly, as usual you have to open your IDLE Python, and then you can copy the syntax below:
def Conversion(s):
print "|TEMPERATURE'S CONVERSION|"
print "==============="
print ""
print "Celcius :",s,"C"
print "Reamur :",4*s/5,"R"
print "Fahrenheit :",(9*s/5)+32,"F"
print "Kelvin :",s+273,"K"
s=input("Input Temperature:")
Conversion(s)
2. After that you can click Run, or press the button F5.
Further more you can watch this video Tutorial by clicking this link
Thanks for reading this article and for your coming to my blog :D
No comments:
Post a Comment