Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'python3': 0.05; 'sys': 0.05; 'editor.': 0.09; 'inserted': 0.09; 'nameerror:': 0.09; 'persists.': 0.09; 'subject:still': 0.09; 'python': 0.10; '"test': 0.16; "'))": 0.16; '12:30': 0.16; '6.0': 0.16; '>on': 0.16; 'received:yourhostingaccount.com': 0.16; 'skip:> 20': 0.16; 'wrote:': 0.16; 'python?': 0.18; '>>>': 0.20; '"",': 0.22; '(all': 0.22; 'sep': 0.22; 'am,': 0.23; 'defined': 0.23; 'import': 0.24; '(most': 0.24; 'downloaded': 0.24; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'linux': 0.26; 'van': 0.26; 'compatible': 0.27; 'figure': 0.27; 'error': 0.27; 'skip:# 10': 0.27; "skip:' 10": 0.28; '(it': 0.29; 'always,': 0.29; 'code:': 0.29; 'print': 0.30; 'books': 0.30; 'url:mailman': 0.30; 'code': 0.30; 'folder': 0.30; 'error.': 0.31; 'maybe': 0.33; 'url:python': 0.33; '8bit%:25': 0.33; 'traceback': 0.33; 'url:listinfo': 0.34; 'file': 0.34; 'running': 0.34; 'gives': 0.35; 'python.org': 0.35; 'could': 0.35; 'but': 0.36; 'url:org': 0.36; 'apple': 0.36; 'received:10.20': 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'mac': 0.37; 'received:66': 0.38; 'version': 0.38; 'thank': 0.38; 'mean': 0.38; 'why': 0.39; 'test': 0.39; 'sure': 0.39; 'does': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'your': 0.60; 'more': 0.63; 'mar': 0.65; 'here': 0.66; 'results': 0.66; "'test'": 0.84; '3.4': 0.84; '4.2.1': 0.84; 'mac.': 0.84; 'skip:\xc5 10': 0.84; '2014,': 0.91; 'joel': 0.91; 'received:112': 0.93 X-Authority-Analysis: v=2.1 cv=Q9Rc4uGa c=1 sm=1 tr=0 a=eBvjjtMVdWwtQGedh7GyLg==:117 a=udqrBR1D2HMiW0oUly8BNg==:17 a=pq4jwCggAAAA:8 a=QPcu4mC3AAAA:8 a=8_iErv3XAAAA:8 a=1E9jo8_qk6kA:10 a=wpL1jeqTJocA:10 a=IkcTkHD0fZMA:10 a=uRRa74qj2VoA:10 a=8AHkEIZyAAAA:8 a=IHpK4gAxAAAA:8 a=ZrXuoSZqAAAA:8 a=gtA3M2siIJLY0rst6-UA:9 a=QEXdDO2ut3YA:10 User-Agent: Microsoft-MacOutlook/14.4.7.141117 Date: Mon, 03 Aug 2015 14:57:05 +0800 Subject: Re: I'm a newbie and I'm still stumped... From: Dwight GoldWinde To: Python Python Thread-Topic: I'm a newbie and I'm still stumped... References: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable X-EN-UserInfo: 6c5a25a10f5591a3de9585e9195aba16:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: dwight@goldwinde.com Sender: Dwight GoldWinde X-EN-OrigIP: 112.112.46.139 X-EN-OrigHost: unknown X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 121 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1438585158 news.xs4all.nl 2959 [2001:888:2000:d::a6]:41322 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94919 Thank you, Emile, Paul, Terry, and Joel for your suggestions! And the error persists. Maybe my error is coming from running the old version (2.7.6) of Python, but I can=E2=80=99t figure out why that would be happening??? I downloaded 3.4.3 again from the Python.org website for my Mac. I inserted the "import sys" and did =E2=80=9Cprint (sys.version)=E2=80=9D into the code= . So here what the code is: #!/usr/bin/env python3 import sys print (sys.version) word =3D input('Enter a word ') Here are the results I got below, showing the same error. The first line says,=20 "2.7.6 (default, Sep 9 2014, 15:04:36)=E2=80=9D. Does that mean I am running the old Python? How could that be since I am SURE I downloaded 3.4.3 (it even gives the folder name as =E2=80=9CPython 3.4=E2=80=9D in the Applications folder on my = Mac. 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] Enter a word serendipity Traceback (most recent call last): File "test short.py", line 4, in word =3D input('Enter a word ') File "", line 1, in NameError: name 'serendipity' is not defined Please help=E2=80=A6 BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) #!/usr/bin/env python3 import sys print (sys.version) word =3D input('Enter a word ') 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] Enter a word serendipity Traceback (most recent call last): File "test short.py", line 3, in word =3D input('Enter a word ') File "", line 1, in NameError: name 'serendipity' is not defined On 8/2/15, 12:30 AM, "Emile van Sebille" wrote: >On 7/30/2015 6:22 PM, Dwight GoldWinde wrote: >> I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner >>2 as >> my editor. >> >> Here=C2=B9s the code: >> #!/usr/bin/env python3 >> word =3D (input('Enter a word =C5=92)) >> >> When running this inside of Coderunner, I get the follow error, after >> entering the word =C5=92serendipity=C2=B9: >> >> Enter a word serendipity >> Traceback (most recent call last): >> File "test short.py", line 2, in >> word =3D (input('Enter a word ')) >> File "", line 1, in >> NameError: name 'serendipity' is not defined > >I'd look at which python is actually running (sys.version): > >Python 3.4.0 (default, Apr 11 2014, 13:05:11) >[GCC 4.8.2] on linux >Type "help", "copyright", "credits" or "license" for more information. > >>> word =3D (input('enter a word ')) >enter a word test > >>> >emile@emile-OptiPlex-9010:~$ python >Python 2.7.6 (default, Mar 22 2014, 22:59:56) >[GCC 4.8.2] on linux2 >Type "help", "copyright", "credits" or "license" for more information. > >>> word =3D (input('enter a word ')) >enter a word test >Traceback (most recent call last): > > >Emile > File "", line 1, in > File "", line 1, in >NameError: name 'test' is not defined > >>> > > > >--=20 >https://mail.python.org/mailman/listinfo/python-list