Discuss Syntax help in the Python Programming forum on Dev Shed. Syntax help Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Posts: 5
Time spent in forums: 41 m 51 sec
Reputation Power: 0
Syntax help
Okay I'm learning to program in Python. I don't have previous programming experience. I'm not a math guy, so could you please recommend me some good books to learn math.
Why is this invalid:
>>> zip_code = 02492
SyntaxError: invalid token
Why is this valid:
>>> zip_code = 02132
>>> zip_code
1114
I'm getting a semantic error :/
It has something to do with the way numbers are multiplied/divided I think.