>While you're at it, could you tell me why line 7 is invalid syntax?
Line 7 would have made sense if you had followed the proper syntax of the code tags:
[code=python] // the code which goes here will have // line numbers at left side
[/code]
Anyways, it turns out that you don't even know the proper syntax of if statement. If was not a bad thing if you were migrating from another language, but the fact is that you are starting programming for the first time.
Anyways, this is the proper syntax:
if <condition> : #notice the colon
//do something when
//the condition is true
>I'd like to destroy whatever the source may be...
I would be glad to help you.
PS: Please follow a definitive tutorial or book to study python. The good part is: that there are enormous resources available for you to learn and most of them are free. You could start learning by the official Python Tutorial or perhaps "How to think Like a Computer Scientist" is also a valuable resource