Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp_f = input("Podaj temperaturę w Celsjuszach: ")
- if temp_f.isdigit():
- wynik = int(temp_f) * 1.8 + 32
- print(temp_f, " to ", wynik, "w Fahrenheit")
- elif temp_f.isalpha():
- print("Temperatura nie może być napisem")
- else:
- print("Niepoprawna wartość")
Add Comment
Please, Sign In to add comment