Greater than 20
Define a function greater_than_20
that receives a number and if it is greater
than 20 returns True
and if not returns False
.
Examples:
>>> greater_than_20(42)
True
>>> greater_than_20(19)
False
Solution 1
def greater_than_20(number):
if number > 20:
return True
return False