NameError: name '***' is not defined
What is a NameError in Python? What can you do to fix it? When does it happen?
All these questions are answered in this video!
The NameError in Python means you've tried accessing a name (variable, function, or module) that doesn't exist in the scope that you've accessed it in. For example, "NameError: name 'os' is not defined" could mean you've tried using the 'os' module, but forgot to import it—so it doesn't exist.
Python errors can be a bit obscure at times. Watch the video to learn more!
-- Links --
✅ Subscribe to the channel: https://youtube.com/tecladocode?sub_confirmation=1
✅ Twitter: https://twitter.com/jslvtr
✅ Our Complete Python Course that takes you from beginner to expert in Python: https://www.udemy.com/the-complete-python-course/?couponCode=YOUTUBE
-- Python Errors playlist --
🐍Playlist for other Python error descriptions: https://www.youtube.com/playlist?list=PLrC-HcVNfULY1GKQ0uOVE1prcRuTtYN75
Thank you for watching!