Sunday, November 13, 2011

Help need with - and + in Python!?

OK, using - and + as the basic math operators in Python, why does the line "num=num-key", when num is 10 and key is 5, return 0? and "num=num-key+key" returns 5?

No comments:

Post a Comment