- 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
5 ответов
+ 3
def
:
y
+ 2
def is_even(int x):
if x%2==0:
print("Yes")
else:
print("No")
0
def is_even(x):
y = x/2
if int(y) == y:
return "yes"
else:
return "no"
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")
0
def
:
else