Re: newbie EOL while scanning string literal

2013-06-26 Thread Steven D'Aprano
On Tue, 25 Jun 2013 17:05:50 -0700, willlewis965 wrote: thanks man you answered my questions very clear, btw do you know of a place where I can learn python I know some tutorials but are 2. something and I'm using 3.3 and I've been told they are different. Try here:

newbie EOL while scanning string literal

2013-06-25 Thread willlewis965
I'am starting to learn python reading a book and I have to do some exercises but I can't understand this one, when I run it it says EOL while scanning string literal and a red shadow next to a line of code. I'm trying to get input from user. I have 3 questions: - Whats does EOL mean and in

Re: newbie EOL while scanning string literal

2013-06-25 Thread willlewis965
FORGET ABOUT is_triangle(5,4,3) I POST IT AND DONT KNOW HOW TO EDIT MY QUESTION -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie EOL while scanning string literal

2013-06-25 Thread Andrew Berg
On 2013.06.25 17:19, willlewis...@gmail.com wrote: na=('type first integer n\')##THE RED SHADOW APPEARS HERE## Here you escape the closing single quote. \n is a line feed, not n\. Also, the parentheses are unnecessary, and it looks like you are a assigning a tuple instead of a string. Syntax

Re: newbie EOL while scanning string literal

2013-06-25 Thread rurpy
On Tuesday, June 25, 2013 4:19:43 PM UTC-6, willle...@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

Re: newbie EOL while scanning string literal

2013-06-25 Thread rurpy
On 06/25/2013 04:19 PM, willlewis...@gmail.com wrote: I'am starting to learn python reading a book and I have to do some exercises but I can't understand this one, when I run it it says EOL while scanning string literal and a red shadow next to a line of code. I'm trying to get input from

Re: newbie EOL while scanning string literal

2013-06-25 Thread willlewis965
thanks man you answered my questions very clear, btw do you know of a place where I can learn python I know some tutorials but are 2. something and I'm using 3.3 and I've been told they are different. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie EOL while scanning string literal

2013-06-25 Thread rusi
On Wednesday, June 26, 2013 5:35:50 AM UTC+5:30, willle...@gmail.com wrote: thanks man you answered my questions very clear, btw do you know of a place where I can learn python I know some tutorials but are 2. something and I'm using 3.3 and I've been told they are different. If you are a

Re: newbie EOL while scanning string literal

2013-06-25 Thread Larry Hudson
On 06/25/2013 05:05 PM, willlewis...@gmail.com wrote: thanks man you answered my questions very clear, btw do you know of a place where I can learn python I know some tutorials but are 2. something and I'm using 3.3 and I've been told they are different. One fairly obvious place is on the