I'm following this tutorial: Python 4 Everybody.
#Python3
#coded_by_jujululu_on_22.06.27
print("""
Hello! :)
What would you like to convert today?
Celsius to Fahrenheit (1) ...
... or Fahrenheit to Celcius? (2)
""")
case=(input("Please input your choice:\n\n"))
if case == '1':
Celsius=float(input("\n\nWhat is the temperature in degrees Celsius? \n\n"))
Fahrenheit=(Celsius*9/5)+32
print("\n\nThe temperature in Fahrenheit is:\n\n{}".format(Fahrenheit))
elif case == '2':
Fahrenheit=float(input("\n\nWhat is the temperature in degrees Fahrenheit? \n\n"))
Celsius=(Fahrenheit-32)*5/9
print("\n\nThe temperature in Celcius is:\n\n{}".format(Celsius))
else:
print("""
Not an option!
Off with your head!
___________
|.--+--.|
|| | ||
||--`--||
|| ,||
|| ,' ||
||,' ||
|| ||
||_____||__
| ___. | `.
|(o o)) | ,(
|`.-,' |-'_ )
|______ |\' -'
_\ /_) )
'"`\___//_)'
''^
""")
print("""
Goodbye!
""")
This one was fun! I spent far too much time trying to find a nice guillotine. I ended up altering the one on this page by rjm aka Russell Marks. Other than that it was quite simple! I don't know how to make a menu yet, so I offered a set of options and made any deviation unnaceptable... and punishable by death. - Jujululu