Create 1.py

This commit is contained in:
Lukas Baumann 2021-02-17 10:36:18 +01:00 committed by GitHub
parent 590ffe32c0
commit 4342aad111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
15/b/1.py Normal file
View File

@ -0,0 +1,7 @@
temp = input()
if "C" in temp:
temp = float (temp[:-1])
print(temp*9/5+32, "F", sep="")
else:
temp = float (temp[:-1])
print((temp-32)*5/9, "C", sep="")