Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.066 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'beginner': 0.05; 'exception.': 0.09; 'subject:question': 0.10; 'python': 0.11; 'programmers,': 0.16; 'received:65.55.116.7': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'programming': 0.22; 'to:name:python- list@python.org': 0.22; 'received:65.55.116': 0.24; 'question': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'that.': 0.31; 'thanks!': 0.32; 'says': 0.33; 'url:python': 0.33; 'beginning': 0.33; 'monday,': 0.33; 'date:': 0.34; 'but': 0.35; 'url:listinfo': 0.36; "didn't": 0.36; 'shows': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.37; 'to:addr:python-list': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'even': 0.60; "you'll": 0.62; 're:': 0.63; 'email name:python-list': 0.65; 'legal': 0.71; 'carlos': 0.91; 'habit': 0.91; '2013': 0.98 X-TMN: [j34yvNKxiHfBoeXJcw/xfrOswiOBosTr] X-Originating-Email: [carlosnepomuceno@outlook.com] Content-Type: multipart/alternative; boundary="_4b7f2f60-1ec4-4fd7-aa1b-b23b1029f2b2_" From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: Beginner question Date: Tue, 4 Jun 2013 11:17:42 +0300 Importance: Normal In-Reply-To: <48f73b41-9ff0-4fc0-a23b-f3eba8d02c80@googlegroups.com> References: <323f2f5b-1f50-4689-90b8-74c411e43971@googlegroups.com>, , <48f73b41-9ff0-4fc0-a23b-f3eba8d02c80@googlegroups.com> MIME-Version: 1.0 X-OriginalArrivalTime: 04 Jun 2013 08:17:42.0311 (UTC) FILETIME=[FC1C8B70:01CE60FB] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 68 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370333931 news.xs4all.nl 15975 [2001:888:2000:d::a6]:36605 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46855 --_4b7f2f60-1ec4-4fd7-aa1b-b23b1029f2b2_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Tue=2C 4 Jun 2013 00:53:04 -0700 > Subject: Re: Beginner question > From: john_ladasky@sbcglobal.net > To: python-list@python.org >=20 > On Monday=2C June 3=2C 2013 11:46:03 PM UTC-7=2C Carlos Nepomuceno wrote: > > That doesn't even works because input() is the same as eval(raw_input()= ). So you'll get a NameError exception. > >=20 > > I think you know that. Perhaps you mean raw_input() instead of input(). >=20 > But the OP's code shows print() functions... which is not the habit of Py= thon 2 programmers=2C even though it's legal code. And the OP says s/he's = a beginning programmer... so why start learning Python 2 in 2013? Let me a= sk the OP=2C are you programming in Python 2 or Python 3? =20 >=20 > If the answer is indeed Python 3: raw_input() has been banished from Pyth= on 3=2C in favor of plain-old input(). Didn't know that. Thanks! > --=20 > http://mail.python.org/mailman/listinfo/python-list = --_4b7f2f60-1ec4-4fd7-aa1b-b23b1029f2b2_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable


>=3B Date: Tue=2C= 4 Jun 2013 00:53:04 -0700
>=3B Subject: Re: Beginner question
>= =3B From: john_ladasky@sbcglobal.net
>=3B To: python-list@python.org>=3B
>=3B On Monday=2C June 3=2C 2013 11:46:03 PM UTC-7=2C Carlos= Nepomuceno wrote:
>=3B >=3B That doesn't even works because input()= is the same as eval(raw_input()). So you'll get a NameError exception.
= >=3B >=3B
>=3B >=3B I think you know that. Perhaps you mean raw= _input() instead of input().
>=3B
>=3B But the OP's code shows p= rint() functions... which is not the habit of Python 2 programmers=2C even = though it's legal code. And the OP says s/he's a beginning programmer... s= o why start learning Python 2 in 2013? Let me ask the OP=2C are you progra= mming in Python 2 or Python 3?
>=3B
>=3B If the answer is inde= ed Python 3: raw_input() has been banished from Python 3=2C in favor of pla= in-old input().

Didn't know that. Thanks!

>=3B --
>= =3B http://mail.python.org/mailman/listinfo/python-list
=
= --_4b7f2f60-1ec4-4fd7-aa1b-b23b1029f2b2_--