Skip to content

Commit

Permalink
Update if without else example in 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 24ae9b8 commit 56bfc06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lessons/beginners-en/comparisons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ print("Thank you for using the geometric calculator.")

```python
number = int(input('Enter a number, to which I will add 3: '))
if number == 0:
print('This is easy!')
if number < 0:
print('Negative number detected!')
print(number, '+ 3 =', number + 3)
```

Expand Down

0 comments on commit 56bfc06

Please sign in to comment.