Support Forums
Some of my first python scripts - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32)
+---- Thread: Some of my first python scripts (/showthread.php?tid=2436)



Some of my first python scripts - uber1337 - 11-01-2009

Found these lying around in a flash drive I was clearing out and I thought I would share Victoire
Celsius to Fahrenheit
Code:
Celsius = input('Input your celsius degrees here:')
Fahrenheit = Celsius * 9/5 + 32
print Fahrenheit
raw_input( ) #keeps it open in windows

Order 3 Numbers
Code:
one = input('Insert a number')
two = input('and another')
three = input('once more')
L = [one, two, three]
L.sort()
print L
raw_input() #keeps the file open on windows

Order 3 Letters
Code:
te = raw_input('Input your value here:')
tex = raw_input('and again:')
text = raw_input ('once more:')
L = [te, tex, text]
L.sort()
print L
raw_input() #keeps it open in Windows



RE: Some of my first python scripts - QBANBOY407 - 11-01-2009

very good man! i was trying to learn Python but school and work does not let me Sad


RE: Some of my first python scripts - nevets04 - 11-04-2009

That's cool, never knew about the sort function.


RE: Some of my first python scripts - uber1337 - 11-06-2009

(11-04-2009, 08:32 PM)nevets04 Wrote: That's cool, never knew about the sort function.

Ya, there is also L.reverse to but it in the other order...