R-1.2: first attempt: incorrect
This commit is contained in:
+4
-2
@@ -1,6 +1,8 @@
|
||||
def is_even(k):
|
||||
if k &:
|
||||
|
||||
if k & 2 != 10:
|
||||
print(False)
|
||||
else:
|
||||
print(True)
|
||||
|
||||
print('Is "k" an even number?')
|
||||
is_even(int(input('Give a value for k: ')))
|
||||
Reference in New Issue
Block a user