[Tutor] Python
Alan Gauld
alan.gauld at btinternet.com
Wed Dec 3 23:33:18 CET 2014
On 03/12/14 21:02, jack jasper wrote:
> Why do I get SyntaxErrors when I type in an article like a or a colon :
> Enter an integer an gets listed as a SyntaxError
>
> x == 0: The colon gets flagged This is part of an if else program with an
> x = raw_input('Enter an integer: ') sort of statement above it.
>
That doesn't help, just post real code that generates the error.
And tell us which Python version and OS you are using to run it.
> I've had trouble with -> with the > being flagged.
I have no idea what you mean by that.
When do you ever use -> in Python?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list