Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94863
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> |
| Newsgroups | comp.lang.python |
| Subject | Re: I'm a newbie and I'm stumped... |
| Date | Sat, 01 Aug 2015 22:01:27 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 20 |
| Message-ID | <mpjc34$g68$1@speranza.aioe.org> (permalink) |
| References | <mailman.1129.1438444727.3674.python-list@python.org> |
| NNTP-Posting-Host | rpgRlhg9tMo1Vs7b/IQ9OA.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.python:94863 |
Show key headers only | View raw
On 31-07-2015 02:22, Dwight GoldWinde wrote:
> Please help.
>
> I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner 2
> as my editor.
>
> Here’s the code:
> #!/usr/bin/env python3
> word = (input('Enter a word ‘))
As is here, this code should raise a syntax error message like
SyntaxError: EOL while scanning string literal
On the right side of *Enter a word* you have to use the same single
quote "'" as that on the left side.
Besides this, the code must work assigning your string input to variable
"word".
The outer "()" are unnecessary but cause no hurt.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I'm a newbie and I'm stumped... Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-08-01 22:01 +0100
csiph-web