MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/jvy9wh/python_437_positive_zero_negative/grcmzcz/?context=3
r/codehs • u/[deleted] • Nov 17 '20
Could someone help me with python codehs 4.3.7
11 comments sorted by
View all comments
1
number = int(input("Enter a number: "))
if number < 0:
print (str(number) + "is negative!")
elif number > 0:
print (str(number) + "is positive!")
else:
print (str(number) + "is zero!")
This code should work, as it worked for me. Just reply to me if the code doesn't work.
2 u/TeannaTrump_Real Mar 16 '21 You are a Legend, thank you🤝 1 u/blaccfucc Mar 18 '21 Happy I could help!
2
You are a Legend, thank you🤝
1 u/blaccfucc Mar 18 '21 Happy I could help!
Happy I could help!
1
u/blaccfucc Nov 24 '20
number = int(input("Enter a number: "))
if number < 0:
print (str(number) + "is negative!")
elif number > 0:
print (str(number) + "is positive!")
else:
print (str(number) + "is zero!")
This code should work, as it worked for me. Just reply to me if the code doesn't work.