Skip to content

Commit

Permalink
Update example if else on lesson 4
Browse files Browse the repository at this point in the history
  • Loading branch information
abobakr mohammed authored and abobakrosman committed Jan 12, 2025
1 parent d2059cf commit 1d63e04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lessons/beginners-en/comparisons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ print(number, '+ 3 =', number + 3)
age = int(input('How old are you? '))
if age >= 150:
print('And from which planet are you?')
elif age >= 18:
elif age >= 10:
# This branch will not be executed for "200", for example.
print('We can offer: wine, cider, or vodka.')
print('We can offer: Cofee, Tea, or sharboot.')
elif age >= 1:
print('We can offer: milk, tea, or water')
print('We can offer: Milk, Ovaltine, or water')
elif age >= 0:
print('Unfortunately, we are out of baby formula.')
else :
Expand Down

0 comments on commit 1d63e04

Please sign in to comment.