Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94863 > unrolled thread
| Started by | Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> |
|---|---|
| First post | 2015-08-01 22:01 +0100 |
| Last post | 2015-08-01 22:01 +0100 |
| 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: 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
| From | Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> |
|---|---|
| Date | 2015-08-01 22:01 +0100 |
| Subject | Re: I'm a newbie and I'm stumped... |
| Message-ID | <mpjc34$g68$1@speranza.aioe.org> |
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 top | Article view | comp.lang.python
csiph-web