[Tutor] What's the invalid syntax? Code supplied
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Thu Aug 4 03:36:36 CEST 2005
On Wed, 3 Aug 2005, Nathan Pinno wrote:
> What wrong with the following syntax?
>
> out_file.write(site+","+sitelist[site][0]+","+sitelist[site][1]"\n")
[text cut]
> It highlighted the last " if that will help any.
Take a close look at the end of the line. Here, I'll underline it:
out_file.write(site+","+sitelist[site][0]+","+sitelist[site][1]"\n")
^^^^^^^^^^^^^^^^^^^^^
Do you see anything unusual there?
More information about the Tutor
mailing list