ozmodeon Wrote:Wayne Wrote:P4 Wrote:This is about as useful as Waynes python script to find out if a number is positive or negative
## Original Number
number = input("Enter a number: ")
if number > 0:
print "Your number is a positive number!"
if number is 2:
print "Your number is equal to two!!!!"
if number < 0:
print "Your number is a negative number!"
raw_input('press Return>')
This script is not fair and balanced. If you were to enter the number 2, the yield would consist of two results, yet any other number would receive but 50% of that attention. How dare you neglect every number other than 2 in such a way! Why can't all numbers be equal?
Furthermore, where is the clause that yields an error for non-numerical entries?
I must confess, this isn't the original "Positive/Negative number checker". I believe one day on ventrilio I was asked to make a script to check if a number was two, and since it had the basic framework for the script I used it. I must have left the "Two checker" in by accident.








