edited by
1,133 views

1 Answer

0 0 votes

A namespace is basically a system to make sure that all the names in a program are unique and can be used without any conflict. You might already know that everything in Python—like strings, lists, functions, etc. is an object. Another interesting fact is that Python implements namespaces as dictionaries. There is a name-to-object mapping, with the names as keys and the objects as values. Multiple namespaces can use the same name and map it to a different object.(read more)

Related questions

1 1 vote
1 1 answer
1.1k
1.1k views
askpython asked Jul 9, 2019
1,117 views
1 1 vote
1 1 answer
1.0k
1.0k views
askpython asked Jul 9, 2019
1,017 views
1 1 vote
1 1 answer
1.0k
1.0k views
askpython asked Jul 9, 2019
1,031 views
0 0 votes
1 1 answer
1.1k
1.1k views
1 1 vote
1 1 answer
1.2k
1.2k views