Learning Python

Ivan Shevanski darkpaladin79 at gmail.com
Sun Feb 5 11:28:15 EST 2006


On 2/5/06, Ivan Shevanski <darkpaladin79 at gmail.com> wrote:
>
>
>
> On 2/5/06, Ivan Shevanski <darkpaladin79 at gmail.com> wrote:
> >
> >
> >
> > On 2/5/06, Florian Nykrin <fn-mail at t-online.de > wrote:
> > >
> > > Hi Byte!
> > >
> > > Your code should look like this:
> > >
> > > x = raw_input('Please enter your name: ')
> > > if x == 'myself': print 'OK'
> > >
> > > Because myself should be a string and not a variable name, you have to
> > > put it in quotes.
> > >
> > > Regards, Florian.
> > > --
> > > http://mail.python.org/mailman/listinfo/python-list
> > >
> >
> >
> >
> > --
> >
> >
>
> Oh, I was under the impression that myself is a variable name. . .Who
> would type in myself as their name? If it is a variable it's fine how it
> is, but if it is a string put it in quotes.
>
>
>
> -Ivan
>

Ugh sorry read it wrong, thats right.

--



-Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060205/89dd8d2f/attachment.html>


More information about the Python-list mailing list