Odpowiedź :
Odpowiedź:
print("1.Temperatura(Celsjusz - Farenheit), 2.Odległość (Metry - Stopy), 3.Odległość (Kilometry - Mile morskie), 4.Waluta (PLN - EUR)")
x = int(input("Co chcesz przeliczyc? Podaj numer: "))
if x == 1:
y = int(input("1.Celcjusze na Fareheity, 2.Farehaity na Celcjusze. Podaj numer: "))
if y == 1:
z = int(input("Podaj ile jest stopni w Celcjuszach: "))
print("Temperatura w Fareheitach to", (z*2)+32)
elif y == 2:
z = int(input("Podaj ile jest stopni w Fareheitach: "))
print("Temperatura w Celcjuszach to", (z//2)-32)
elif x == 2:
y = int(input("1.Metry na stopy, 2.Stopy na metry. Podaj numer: "))
if y == 1:
z = int(input("Podaj ile jest metrów: "))
print("Stóp jest", z*3.28)
elif y == 2:
z = int(input("Podaj ile jest stóp: "))
print("Metrów jest", z*0.30)
elif x == 3:
y = int(input("1.Kilometry na mile morskie, 2.Mile morskie na kilometry. Podaj numer: "))
if y == 1:
z = int(input("Podaj ile jest kilometrów: "))
print("Mil morskich jest", z*0.62)
elif y == 2:
z = int(input("Podaj ile jest mil morskich: "))
print("Kilometrów jest", z*1.8)
elif x == 4:
y = int(input("1.P.L.N na EUR, 2.EUR na P.LN. Podaj numer: "))
if y == 1:
z = int(input("Podaj ile jest P.L.N: "))
print("EUR jest", z*0.22)
elif y == 2:
z = int(input("Podaj ile jest P.L.N: "))
print("PLN jest", z*4.64)
Wyjaśnienie:
Troche mało punktów za takie zadanie.