11-01-2009, 07:43 PM
Found these lying around in a flash drive I was clearing out and I thought I would share
Celsius to Fahrenheit
Order 3 Numbers
Order 3 Letters
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