(Very Newbie) Problems defining a variable
Benjamin Kaplan
benjamin.kaplan at case.edu
Fri Dec 12 13:11:39 EST 2008
On Fri, Dec 12, 2008 at 12:50 PM, Dennis Lee Bieber
<wlfraed at ix.netcom.com>wrote:
> On Fri, 12 Dec 2008 03:42:55 -0800 (PST), febaen at gmail.com declaimed the
> following in comp.lang.python:
>
> > #!/usr/bin/python
> > #Py3k, UTF-8
> >
> > bank = int(input("How much money is in your account?\n>>"))
> > target = int(input("How much money would you like to earn each year?
> > \n>>"))
> >
> Just for my curiosity -- did Python 3.x (besides turning print into
> a function) also change input() to behave as the old raw_input()?
>
Yes.
>
> The above would be very discouraged in Python 2.x... in favor of ...
> int(raw_input(...))
>
>
> --
> Wulfraed Dennis Lee Bieber KD6MOG
> wlfraed at ix.netcom.com wulfraed at bestiaria.com
> HTTP://wlfraed.home.netcom.com/
> (Bestiaria Support Staff: web-asst at bestiaria.com)
> HTTP://www.bestiaria.com/
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081212/44f59901/attachment-0001.html>
More information about the Python-list
mailing list