Support Forums

Full Version: Some of my first python scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
very good man! i was trying to learn Python but school and work does not let me Sad
That's cool, never knew about the sort function.
(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...