Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65007 > unrolled thread
| Started by | Zachary Ware <zachary.ware+pylist@gmail.com> |
|---|---|
| First post | 2014-01-30 08:13 -0600 |
| Last post | 2014-01-30 08:13 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: end quote help for a newbie Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-01-30 08:13 -0600
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
|---|---|
| Date | 2014-01-30 08:13 -0600 |
| Subject | Re: end quote help for a newbie |
| Message-ID | <mailman.6141.1391091224.18130.python-list@python.org> |
On Thu, Jan 30, 2014 at 7:26 AM, Peter Clark <artomishka@yahoo.co.uk> wrote: > There is probably an easy solution to this – but I have not found it. > > Trying to terminate a literal in a print statement (from the tutorial). > > The literal should be enclosed in double quotes “ “ > > the initial double quote seems to be OK (if I use a different character it > flags it) but the ending is flagged as invalid syntax. I have tried > changing my keyboard from UK to USA, without any effect, and tried adding a > space after the final double quote, Which version of Python are you using? Make sure you're using the same version of interpreter and tutorial. 'print' was one of the big changes between Python 2 and Python 3 (in Python 2 it was a statement, while in Python 3 it is a function), so a tutorial written with Python 2 in mind will have some issues if you're using Python 3. If you've already checked that, try copying and pasting your entire interpreter session into a reply here, and we'll be more able to figure out what's going on. Hope this helps, -- Zach
Back to top | Article view | comp.lang.python
csiph-web