On Fri, Aug 10, 2012 at 2:57 PM, Selby Rowley Cannon <selbyrowleycan...@ymail.com> wrote: > On 10/08/12 18:17, Joel Goldstick wrote: >> >> On Fri, Aug 10, 2012 at 1:05 PM, Selby Rowley Cannon >> <selbyrowleycan...@ymail.com> wrote: >>> >>> I have written a small application to encrypt some text. The script looks >>> fine to me, but it won't run and I can't figure out why. I have attached >>> it, >>> if anyone knows why it doesn't work please let me know! >>> >> What do you mean 'it won't run'? Do you get an error with Traceback? >> >> I glanced at your code, and your dictionary ends like this: , 'X':'A', >> 'Y':'B', 'Z':'C', >> >> There is no closing brace > > OK, > > File "./crypto.py", line 6 > def encrypt(): > ^ > SyntaxError: invalid syntax >
First, don't reply to me, reply to the group. That might mean choosing reply all. So, your first problem is that the dictionary isn't closed. This is causing the error at line 6 fix that and find your next error. It looks like there are lots of them With such a small file you would do better to just post the code directly. That way if people see problems they can point them out in the body of the reply good luck -- Joel Goldstick _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor