Created
November 6, 2021 13:12
-
-
Save moulik-source/02894cda1cda1aef87645173b374e207 to your computer and use it in GitHub Desktop.
Source Code: Using Nested if
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
num = float(input("Enter a number: ")) | |
if num >= 0: | |
if num == 0: | |
print("Zero") | |
else: | |
print("Positive number") | |
else: | |
print("Negative number") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment