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

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Sat Aug 1 23:01:27 CEST 2015


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.




More information about the Python-list mailing list