Re: [Tutor] print string using triple quote

2015-03-17 Thread boB Stepp
On Mon, Mar 16, 2015 at 11:13 PM, Nick Nguyen wrote: > > Hi, > I use python 3.4.3. > I'm using print function with triple quote, as I understand all the character > will be printed as exactly within the triple quote, even with the backslash > character. However as you see in the RESULT printout,

Re: [Tutor] print string using triple quote

2015-03-17 Thread Dave Angel
On 03/17/2015 05:54 AM, Alan Gauld wrote: On 17/03/15 04:13, Nick Nguyen wrote: Hi, I use python 3.4.3. I'm using print function with triple quote, > as I understand all the character will be printed as exactly within the triple quote, even with > the backslash character. You understand

Re: [Tutor] print string using triple quote

2015-03-17 Thread Alan Gauld
On 17/03/15 04:13, Nick Nguyen wrote: Hi, I use python 3.4.3. I'm using print function with triple quote, > as I understand all the character will be printed as exactly within the triple quote, even with > the backslash character. You understand wrongly. Triple quotes are no different to an

[Tutor] print string using triple quote

2015-03-17 Thread Nick Nguyen
Hi, I use python 3.4.3. I'm using print function with triple quote, as I understand all the character will be printed as exactly within the triple quote, even with the backslash character. However as you see in the RESULT printout, the first backslash come out OK, but it misses the last backsla

Re: [Tutor] print string

2014-08-17 Thread Ben Finney
Sajjadul Islam writes: > I have started working with python 2.7.6 In addition to the other responses: You should use Python 3 if at all possible. It is in active development and much more suitable for learning today. -- \ “Ignorance more frequently begets confidence than does |

Re: [Tutor] print string

2014-08-17 Thread Alan Gauld
On 17/08/14 14:11, Sajjadul Islam wrote: Hello forum, I have started working with python 2.7.6 and i am trying to print the following string value: print("Same", "message", "as before") Looks like you are using a Python v3 tutorial on Python 2.7. The syntax of printing changed a lot in Python

[Tutor] print string

2014-08-17 Thread Sajjadul Islam
Hello forum, I have started working with python 2.7.6 and i am trying to print the following string value: print("Same", "message", "as before") and i am supposed to get Same message as before. But i am getting the following : ("Same", "message", "as before") Any hint whats wrong? Thanks