Siema uczę sie dopiero programowania w pythonie i zrobiłem sam prosty program do zamiany stopni. Chciałem się zapytać czy jest napisane to w miare czytelnie albo czy można jeszcze jakoś skrócić kod
def number1():
temp = input("Podaj temperature: ")
obl1 = float(temp) * 9 / 5 + 32
print(round(obl1,2), 'F')
def number2():
temp = input("Podaj temperature: ")
obl2 = (float(temp) - 32) * 5 / 9
print(round(obl2,2), 'C')
print("Wybierz:\n"
"1. Z Celcjuszy na Farenhaita\n"
"2. Z Farenhaita na Celcjusze")
choice = input("Wybierz numer: ")
if choice == str(1):
number1()
elif choice == str(2):
number2()
else:
print("Niepoprawny numer")