Why python does not raise NameError -
consider simple case:
i = 10 if != id: print
as id
not defined here assuming nameerror: name 'id' not defined
not raise any.
but in case:
id = 10 if != id: print
it raised nameerror
exception i
. can explain me behaviour?
id
built-in function, defined. use name variable.
here list of built-in functions.
Comments
Post a Comment