From 4cc56d1b31a54e562c519c7ed519b2f652390baa Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 30 May 2021 22:57:09 +0100 Subject: - Added Python solution by Laurent Rosenfeld. --- challenge-114/laurent-rosenfeld/python/ch-1.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 challenge-114/laurent-rosenfeld/python/ch-1.py diff --git a/challenge-114/laurent-rosenfeld/python/ch-1.py b/challenge-114/laurent-rosenfeld/python/ch-1.py new file mode 100644 index 0000000000..2e9515a117 --- /dev/null +++ b/challenge-114/laurent-rosenfeld/python/ch-1.py @@ -0,0 +1,8 @@ +import sys + +num = int(sys.argv[1]) +while (1): + if str(num) == str(num)[::-1]: + print(num) + break + num += 1 -- cgit