Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    I have decided next time I am asked to explain this, I will use the id() function to show the binding of the name to the reference. Commented Nov 11, 2015 at 10:01
  • 1
    Names are references in the current scope. The only visible difference between "names" and "variables" (as in Java) is when you look at locals(), which most of the time you don't. And yes, Java has several types of primitives whereas Python has only one. Commented Sep 4, 2016 at 23:04
  • 1
    That last sentence is a perfect summary of what I see many newbies of Python getting very confused with! Commented Aug 18, 2020 at 13:21