aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2022-11-26 12:56:06 +0000
committerGitHub <noreply@github.com>2022-11-26 12:56:06 +0000
commitb1eeeecc9e6ca6b31535c99d91c7be0d54f016c5 (patch)
treea339ae0a88b8dc0b9e3d6689fc6a291b442d0363
parent9fb08c5841b630c28e5e9c846f6b8c10922dcabb (diff)
downloadperlweeklychallenge-club-b1eeeecc9e6ca6b31535c99d91c7be0d54f016c5.tar.gz
perlweeklychallenge-club-b1eeeecc9e6ca6b31535c99d91c7be0d54f016c5.tar.bz2
perlweeklychallenge-club-b1eeeecc9e6ca6b31535c99d91c7be0d54f016c5.zip
Update ch-1.py
-rw-r--r--challenge-192/mohammad-anwar/python/ch-1.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/challenge-192/mohammad-anwar/python/ch-1.py b/challenge-192/mohammad-anwar/python/ch-1.py
index 3ff80be425..0dac54c65f 100644
--- a/challenge-192/mohammad-anwar/python/ch-1.py
+++ b/challenge-192/mohammad-anwar/python/ch-1.py
@@ -17,7 +17,8 @@ Task #1: Binary Flip
import unittest
def binaryFlip(n) -> int:
- return int(''.join(['1' if i == '0' else '0' for i in "{0:b}".format(n)]),2)
+ return int(''.join([ '1' if i == '0' else '0'
+ for i in "{0:b}".format(n)]),2)
#
#