- 2

Fill in the blanks to define a function that prints "Yes", if its parameter is an even number, and "No" otherwise. even(x):

def print else

21st Jun 2019, 6:20 AM
Pooja Jadhav
Pooja Jadhav - avatar
5 ответов
+ 3
def : y
17th May 2021, 6:48 AM
Salimov Furqat
Salimov Furqat - avatar
+ 2
def is_even(int x): if x%2==0: print("Yes") else: print("No")
22nd Jun 2019, 9:11 AM
anuradha mall
0
def is_even(x): y = x/2 if int(y) == y: return "yes" else: return "no"
21st Jun 2019, 8:52 AM
Seb TheS
Seb TheS - avatar
0
If you think the question is wrong, you're right: just write the answer = else: then he accepts it as true... correct spelling: else: print("No")
30th Jul 2022, 1:41 PM
Mustafa KAYIKÇI
Mustafa KAYIKÇI - avatar
0
def : else
24th Aug 2022, 6:43 PM
V. Supraja
V. Supraja - avatar