Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94840
| References | <D1E0EED9.10BBA2%Dwight@GoldWinde.com> |
|---|---|
| Date | 2015-08-01 12:22 -0400 |
| Subject | Re: I'm a newbie and I'm stumped... |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1132.1438446173.3674.python-list@python.org> (permalink) |
On Thu, Jul 30, 2015 at 9:22 PM, Dwight GoldWinde <Dwight@goldwinde.com> 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 ‘))
>
> When running this inside of Coderunner, I get the follow error, after
> entering the word ‘serendipity’:
>
> Enter a word serendipity
>
> Traceback (most recent call last):
>
> File "test short.py", line 2, in <module>
>
> word = (input('Enter a word '))
>
> File "<string>", line 1, in <module>
>
> NameError: name 'serendipity' is not defined
>
>
The error you are getting is the error you would get if you were using
python 2.x. So, are you sure you are running 3.4? Can you go to a
shell and run it from command line?
also, use plain text to send mail
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
Joel Goldstick
http://joelgoldstick.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: I'm a newbie and I'm stumped... Joel Goldstick <joel.goldstick@gmail.com> - 2015-08-01 12:22 -0400
csiph-web