Skip to content

Commit

Permalink
bite 101
Browse files Browse the repository at this point in the history
  • Loading branch information
boraxpr committed Oct 22, 2019
1 parent a71400e commit ec7515a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 101/driving.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ def allowed_driving(name, age):
"""Print '{name} is allowed to drive' or '{name} is not allowed to drive'
checking the passed in age against the MIN_DRIVING_AGE constant"""
if age > MIN_DRIVING_AGE:
return True
print(name + " is allowed to drive")
else:
return False
print(name + " is not allowed to drive")

allowed_driving("Tim", 29)

0 comments on commit ec7515a

Please sign in to comment.