print "Hello, World!"
Hi, everyone, Venku (a.k.a Python Newb) here.
I just kind of randomly opened up Python today (I do that a lot), and I decided I would finally ask this:
What does the "is" statement do in Python 2.7.1 (if the ver# matters)?
I checked out the Python command line (used "help()" "modules" "is"), but it only gave a comparison to C and an unintelligible description of what it does. I have an extensive vocabulary, and I am great with grammar and spelling, but the terminology, like "collection" and "membership" confused me.
It appears to be used in boolean operations (equal, not equal, etc.).
I wouldn't call myself a programmer just yet, but I'm very interested in Python and think it could be applied effectively in many environments, as it's so flexible.
Basically, I'm asking for a n00b explanation of "is."