New Guy
Duncan Booth
duncan at NOSPAMrcp.co.uk
Wed Nov 19 03:53:54 EST 2003
"nards_collective" <nards_collective at yahoo.com.au> wrote in
news:mailman.865.1069224343.702.python-list at python.org:
> Thanks for the advise gys, but I still can't decipher the problem.
> Below is a copy of the entir progra, the erro is stil in the first
> 'if' command.
The problem is that you have indented the 'if' statements. You aren't
allowed to indent code arbitrarily in Python. Indent inside blocks, but the
first if statement doesn't start a new block, so it MUST be at exactly the
same indentation level as the preceding print statement.
--
Duncan Booth duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
More information about the Python-list
mailing list