Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Paulo da Silva 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: References: 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 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.