• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Switch to Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Steem Proposals 
  • Third-party exchanges:
  • Poloniex 
  • Advertise 
  • Jobs at Steemit 
  • Developer Portal 
  • Steem Bluepaper 
  • SMT Whitepaper 
  • Steem Whitepaper 
  • Privacy Policy
  • Terms of Service
Operated byH4LABh4lab.com
HomeOperated byH4LAB
LoginSign up
  • Explore
    • All Posts
    • Communities
  • My Profile
  • My Wallet
  • H4LAB

Python Program to Check if a Number is Positive, Negative or 0

python-dev (58)in #python-dev • 6 years ago
num = float(input("Enter a number: "))
if num > 0:
   print("Positive number")
elif num == 0:
   print("Zero")
else:
   print("Negative number")
6 years ago in #python-dev by python-dev (58)
$0.10
  • Past Payouts $0.10, 0.00 TRX
  • - Author $0.05, 0.00 TRX
  • - Curators $0.05, 0.00 TRX
2 votes
  • + payroll
  • + mytechtrail
Reply 1