Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94863

Re: I'm a newbie and I'm stumped...

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 2015-08-01 22:01 +0100
Organization Aioe.org NNTP Server
Message-ID <mpjc34$g68$1@speranza.aioe.org> (permalink)
References <mailman.1129.1438444727.3674.python-list@python.org>

Show all headers | 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


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