From 4342aad11188ef8c802d3bb111b2b1fc475119e6 Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Wed, 17 Feb 2021 10:36:18 +0100 Subject: [PATCH] Create 1.py --- 15/b/1.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 15/b/1.py diff --git a/15/b/1.py b/15/b/1.py new file mode 100644 index 0000000..4c469f1 --- /dev/null +++ b/15/b/1.py @@ -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="")