On Jan 23, 2013, at 4:37 PM, Grady Trexler <[email protected]> wrote:
>
> Below is my code. I am using python 2.4 It tells me I have a syntax error.
> Please help! (I think the first twenty lines have what you would be looking
> for. After that it just repeats itself.)
> #scenario maker
> #created by: Grady Trexler
> #started on 1/3/13
> #last update: 1/3/13
>
> def rungame()
> guyone = raw_input("Please enter a name:")
>
[megabyte]
> print "%s: EVERYTHING!!!!" % (guytwo)
> print "%s pushed passed %s and ran away. The two never saw
> eachother again." % (guytwo, guyone)
> rungame()
> --
> --T-rexmix
> Check out my website-
> www.thegradypage.weebly.com
> It has new blog posts all the time!
> Fight against Gandalf. Like a Balrog.
> _______________________________________________
> Tutor maillist - [email protected]
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
In the future, please also show us the error and the traceback so we don't have
to read through your whole code looking for lints.
File "text.py", line 1
def rungame()
^
SyntaxError: invalid syntax
You forgot the colon after the closing ) in the def statement.
-Bill
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor