Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created November 6, 2021 13:08
Show Gist options
  • Save moulik-source/f7ea83b319f0fb14926f399fe753328e to your computer and use it in GitHub Desktop.
Save moulik-source/f7ea83b319f0fb14926f399fe753328e to your computer and use it in GitHub Desktop.
positive negative or zero
num = float(input("Please eneter a value: "))
if num >0:
print("Positive")
elif num < 0:
print("negative")
else:
print("zero")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment