forked from MurphyWan/Python-first-Practice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
number = 23 | ||
guess = int(input('Enter an integer : ')) | ||
|
||
if guess == number: | ||
print('Congratulations, bingo!') # New block starts here | ||
print('(but you do not win any prizes!)') # New block ends here | ||
elif guess < number: | ||
print('No, it is a litter higher than that') | ||
# you can do whatever you want in a block ... | ||
else: | ||
print('No, it is a letter lower than that') | ||
# you must have guess > number to reach here | ||
print('Done') | ||
# That last statement is always executed, after the if statement is executed |