Re: [Tutor] Closing triple quotation marks.

2011-06-19 Thread Lisi
On Sunday 19 June 2011 14:23:25 col speed wrote: > On 19 June 2011 14:46, Lisi wrote: > > On Sunday 19 June 2011 08:39:43 Alan Gauld wrote: > > > "Lisi" wrote > > > > > > > It does indeed. Thank you, both of you. I have clearly not got the > > > > terms > > > > command, method, function (and fe

Re: [Tutor] Closing triple quotation marks.

2011-06-19 Thread col speed
On 19 June 2011 14:46, Lisi wrote: > On Sunday 19 June 2011 08:39:43 Alan Gauld wrote: > > "Lisi" wrote > > > > > It does indeed. Thank you, both of you. I have clearly not got the > > > terms > > > command, method, function (and feature?) clearly sorted out in my > > > mind, so > > > that is

Re: [Tutor] Closing triple quotation marks.

2011-06-19 Thread Lisi
On Sunday 19 June 2011 08:39:43 Alan Gauld wrote: > "Lisi" wrote > > > It does indeed. Thank you, both of you. I have clearly not got the > > terms > > command, method, function (and feature?) clearly sorted out in my > > mind, so > > that is obviously where I need to go. I am supposed to be >

Re: [Tutor] Closing triple quotation marks.

2011-06-19 Thread Alan Gauld
"Lisi" wrote It does indeed. Thank you, both of you. I have clearly not got the terms command, method, function (and feature?) clearly sorted out in my mind, so that is obviously where I need to go. I am supposed to be researching import, but I have not yet succeeded in seeing why it is a

Re: [Tutor] Closing triple quotation marks.

2011-06-18 Thread Lisi
On Saturday 18 June 2011 15:58:23 Alan Gauld wrote: > "Lisi" wrote > > > But I still can't write to the file. > > > > If I do: > > target.write(line1) > > > > The value of the variable line1 is written to the file. > > That will work provided line1 is a string. > > > But if I put the three variab

Re: [Tutor] Closing triple quotation marks.

2011-06-18 Thread Alan Gauld
"Lisi" wrote But I still can't write to the file. If I do: target.write(line1) The value of the variable line1 is written to the file. That will work provided line1 is a string. But if I put the three variables into the write command, what gets printed is the name of the variables, not

Re: [Tutor] Closing triple quotation marks.

2011-06-18 Thread Steven D'Aprano
Lisi wrote: But I still can't write to the file. If I do: target.write(line1) The value of the variable line1 is written to the file. But if I put the three variables into the write command, what gets printed is the name of the variables, not their values. I am clearly still doing someth

Re: [Tutor] Closing triple quotation marks.

2011-06-18 Thread Lisi
On Saturday 18 June 2011 13:37:38 Steven D'Aprano wrote: > Lisi wrote: > [...] > > > Fair enough. the closing quotation marks are not there. > > > > But when they _are_ there, i.e. when that stanza reads: > > > > target.write """ > > line1\nline2\nline3\n > > """ > > This is not the problem, but I

Re: [Tutor] Closing triple quotation marks.

2011-06-18 Thread Steven D'Aprano
Lisi wrote: [...] Fair enough. the closing quotation marks are not there. But when they _are_ there, i.e. when that stanza reads: target.write """ line1\nline2\nline3\n """ This is not the problem, but I just thought I'd mention that it's a bit silly to go to the trouble of using newline esc

[Tutor] Closing triple quotation marks.

2011-06-18 Thread Lisi
I have left the program intact below* because I am afraid that if I cut it I may cut out something that is essential. I am working from an existing program that I have typed out under instructions, but am now trying to replace the commented out section with just one command. The program with