Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'tutorial': 0.03; 'interpreter': 0.05; 'subject:help': 0.08; 'literal': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'changes': 0.15; 'clark': 0.16; 'effect,': 0.16; 'function),': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'trying': 0.19; 'thu,': 0.19; 'written': 0.21; 'seems': 0.21; '(in': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'keyboard': 0.24; 'initial': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'character': 0.29; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'flags': 0.31; 'quotes': 0.31; 'subject:end': 0.31; 'terminate': 0.31; 'probably': 0.32; 'checked': 0.32; 'figure': 0.32; 'copying': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'should': 0.36; 'changing': 0.37; 'that,': 0.38; '(from': 0.39; 'quote': 0.39; 'sure': 0.39; 'space': 0.40; 'easy': 0.60; 'enclosed': 0.60; 'hope': 0.61; 'entire': 0.61; "you're": 0.61; "you've": 0.63; 'more': 0.64; 'different': 0.65; '30,': 0.65; 'reply': 0.66; 'between': 0.67; 'invalid': 0.68; 'statement,': 0.68; '\xe2\x80\x93': 0.77; 'ending': 0.78; 'pasting': 0.84; 'quote,': 0.84; 'to:addr:yahoo.co.uk': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=NbCTnVSjQDPwgWoisdwshNsasPis1ihCLV+b7oWr0cc=; b=PGJ5BkKbN6dG/fVAtYYbn0KhF+wfe/g7bVvKcpUm/wCM0+S5DHvxOxD13c+OWUlTtE YfuzJ1OD7LFHRxOhJH6srM1vnU3PbVPGyQ8V+zijKI88/ppjbBPUdeKjG5xxonaPbtsP N+9/ivgKB0RphLdhMu1aOPCBeyoK+4HG9r2zbDv+GAv89Q4aN8Zc3XyqDP09M0XBzG8K DU0oDPOLmWwWjdPaV5AEufpOthWcic4rNUcaS7+VgRbmTFWdTpFaZE3Tc5fXbedfaFhT 6VVCqQ5ax04q/5PrTJ2XHb02on3jN20TFairrgPPZx7KN8zef+UqPzy40THBlJEqZVxD 0q1w== X-Received: by 10.204.225.143 with SMTP id is15mr11468bkb.122.1391091217476; Thu, 30 Jan 2014 06:13:37 -0800 (PST) MIME-Version: 1.0 Sender: zachary.ware@gmail.com In-Reply-To: <1391088376.73476.YahooMailNeo@web133103.mail.ir2.yahoo.com> References: <1391088376.73476.YahooMailNeo@web133103.mail.ir2.yahoo.com> From: Zachary Ware Date: Thu, 30 Jan 2014 08:13:17 -0600 X-Google-Sender-Auth: Wo37YTOi3gPp6GbRW8WUsNOxyJM Subject: Re: end quote help for a newbie To: Peter Clark Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391091224 news.xs4all.nl 2974 [2001:888:2000:d::a6]:44412 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65007 On Thu, Jan 30, 2014 at 7:26 AM, Peter Clark wrote= : > There is probably an easy solution to this =E2=80=93 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 =E2=80=9C =E2=80=9C > > the initial double quote seems to be OK (if I use a different character i= t > 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, --=20 Zach