logo

Crowdly

Browser

Add to Chrome

Why does the following program result in an error? def check_age(age): """...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Why does the following program result in an error?

def check_age(age):

"""A docstring that gives nothing away"""

if age < 18:

underage = True

elif age > 18:

underage = False

return underage

print(check_age(18))

More questions like this

Want instant access to all verified answers on learn.canterbury.ac.nz?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome