From b3e2feb87e4836261ae4be4ffd22c392b655990f Mon Sep 17 00:00:00 2001 From: baphim <269010393+baphim@users.noreply.github.com> Date: Wed, 2 Sep 2026 21:18:12 -0400 Subject: [PATCH] R-1.2: first attempt: incorrect --- lab-01/r-1.2.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lab-01/r-1.2.py b/lab-01/r-1.2.py index a992d21..2702a0d 100644 --- a/lab-01/r-1.2.py +++ b/lab-01/r-1.2.py @@ -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: '))) \ No newline at end of file