newbie EOL while scanning string literal

rurpy at yahoo.com rurpy at yahoo.com
Tue Jun 25 18:37:16 EDT 2013


On Tuesday, June 25, 2013 4:19:43 PM UTC-6, willle... at gmail.com wrote:
>[...]
> na=('type first integer n\')##THE RED SHADOW APPEARS HERE##

You want \n at the end of the string, not n\.
A backslash character \ in front of the ' escapes the ' and 
causes it to to be considered as a character in the string
rather than ending the string. 



More information about the Python-list mailing list