-
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.
Adding If-Else-Elif Demonstration in Python
- Loading branch information
Showing
1 changed file
with
17 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,17 @@ | ||
# If-Else-Elif Demonstration in Python | ||
|
||
This program demonstrates various examples of using conditional statements (`if`, `else`, `elif`) in Python. It covers basic usage as well as more advanced scenarios like nested conditions and logical operators. | ||
|
||
## Prerequisites | ||
|
||
- Python 3.x | ||
|
||
## Usage | ||
|
||
1. Clone or download this repository. | ||
2. Navigate to the directory containing the `if_else_elif.py` script. | ||
3. Run the script using the following command: | ||
|
||
```bash | ||
python if_else_elif.py | ||
``` |