From f067d6a2cfc8728b5e3b2b44fe8693cf14d89e74 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Tue, 25 Feb 2020 14:22:40 +0000 Subject: - Added Python solutions by Orestis Zekai. --- challenge-049/orestis-zekai/python/ch-1.py | 13 +++++++++++++ challenge-049/orestis-zekai/python/ch-2.py | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 challenge-049/orestis-zekai/python/ch-1.py create mode 100644 challenge-049/orestis-zekai/python/ch-2.py diff --git a/challenge-049/orestis-zekai/python/ch-1.py b/challenge-049/orestis-zekai/python/ch-1.py new file mode 100644 index 0000000000..eba40c2523 --- /dev/null +++ b/challenge-049/orestis-zekai/python/ch-1.py @@ -0,0 +1,13 @@ +import re + +num = 23 +factor = 2 + +onesZeros = re.compile(r'[2-9]+') + +while True: + intermed = num*factor + if onesZeros.search(str(intermed)) is None: + print(intermed) + break + factor += 1 diff --git a/challenge-049/orestis-zekai/python/ch-2.py b/challenge-049/orestis-zekai/python/ch-2.py new file mode 100644 index 0000000000..eba40c2523 --- /dev/null +++ b/challenge-049/orestis-zekai/python/ch-2.py @@ -0,0 +1,13 @@ +import re + +num = 23 +factor = 2 + +onesZeros = re.compile(r'[2-9]+') + +while True: + intermed = num*factor + if onesZeros.search(str(intermed)) is None: + print(intermed) + break + factor += 1 -- cgit