DW Forums
SearchMember ListHelp Register
Post Reply 
Stardock Fences
Author
Message
Quote this message in a reply
 
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.

Original owner of Norbit.TS.Xvid-20th
http://www.softcat.ru
Quote this message in a reply
 
lol u gaiz

[Image: sig.png]
Quote this message in a reply
 
HashBox Wrote:lol u gaiz

You wouldn't happen to be referring to the area Gaiz, in the Dhakuria district of Kolkata in West Bengal, India, would you? The photos suggest it to be a reasonably affluent area.

See: Google Maps: Gaiz

I fail to see the connection, and as such I send to you my sincerest apologies for my inadequacy.
Quote this message in a reply
 
Awwww I got owned Sad

[Image: sig.png]
Post Reply