Commit 84b631b4 authored by Leonard Engmann's avatar Leonard Engmann
Browse files

Describe your commit here

parent 9a4a2fcc
from module_1 import is_positive, is_even
def is_even_and_positive(x):
"""
Please modify the body of this function so that it returns
- True if `x` is an even and positive integer
- False in all other cases
"""
if is_positive(x)==True and is_even(x)==True:
return True
else:
return False
# This function body should be edited such that
# it contains the correct solution
raise NotImplementedError
#raise NotImplementedError
# one possibility would be to use the functions
# provided by module_1
# return is_even(x) and is_positive(x)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment