Create 2 - First, Second, Third.py

This commit is contained in:
Lukas Baumann 2021-02-18 10:03:39 +01:00 committed by GitHub
parent 9bfcec8b1e
commit 78849c156a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")