diff options
| -rw-r--r-- | challenge-114/laurent-rosenfeld/python/ch-1.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
