From e298ba2b4819e228784bfa65a51b2a3b0854958a Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Wed, 20 Nov 2024 19:09:10 -0300 Subject: [PATCH] Solve Month in python --- solutions/beecrowd/1052/1052.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 solutions/beecrowd/1052/1052.py diff --git a/solutions/beecrowd/1052/1052.py b/solutions/beecrowd/1052/1052.py new file mode 100644 index 00000000..e6a00a90 --- /dev/null +++ b/solutions/beecrowd/1052/1052.py @@ -0,0 +1,19 @@ +import sys + +months = { + 1: 'January', + 2: 'February', + 3: 'March', + 4: 'April', + 5: 'May', + 6: 'June', + 7: 'July', + 8: 'August', + 9: 'September', + 10: 'October', + 11: 'November', + 12: 'December', +} + +for line in sys.stdin: + print(months[int(line)])