From 78849c156aaaf17bd9ac2352cab61ffd8c96025f Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 10:03:39 +0100 Subject: [PATCH] Create 2 - First, Second, Third.py --- 9/2 - First, Second, Third.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 9/2 - First, Second, Third.py diff --git a/9/2 - First, Second, Third.py b/9/2 - First, Second, Third.py new file mode 100644 index 0000000..cd11e24 --- /dev/null +++ b/9/2 - First, Second, Third.py @@ -0,0 +1,5 @@ +x = int(input()) +if x == 1: print("1st") +elif x == 2: print("2nd") +elif x == 3: print("3rd") +else: print(str(x) + "th")