Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created November 6, 2021 13:12
Show Gist options
  • Save moulik-source/02894cda1cda1aef87645173b374e207 to your computer and use it in GitHub Desktop.
Save moulik-source/02894cda1cda1aef87645173b374e207 to your computer and use it in GitHub Desktop.
Source Code: Using Nested if
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