What is namespace in python
I have just started Python and am trying to understand its various components. Can I get a clear explanation about what namespace is in Python?
What is namespace in Python? It is a very common question asked by novice Python trainees. Whenever defining an object in Python, naming it is crucial for using it later. Python provides a space where the names used to define objects are kept. This space is famously known as a namespace. There are three types of Namespace in Python: local, global, and built-in namespace.
![](https://lh4.googleusercontent.com/31GRz9Z40X_v07q38yF5gIgwMdXykLZLcu0J3BSKZjz1muWelllk60snfqXhp_slUHot7Ss6O7oFLHA4ryJw4vYqGkMKEA2MbMh6frBbiAoRr4Fuag_OQN19G5CgNNsgkRZWH2lIxUVKRl8yWMR7xs0)
![](https://lh5.googleusercontent.com/swqm1Ku-pkr_CtMtdxzejYxR38Q7xH_DLT-9MacSjJvLLxW4KaDAQet2ow7-l9BMoju41UDbbNhnk0CQtYlZT5d_VcmflOjjxztv-E6xMHkAW_gH8VwTWO2kdWZJVleDE5UKKbOEQrcA7RBdmEYESUs)