Don't use the global keyword in your Python program! The UnboundLocalError explained and fixed!

preview_player
Показать описание
If you're new to Python, you might have encountered (and been confused by) the UnboundLocalError. I was the first time I encountered it! I explain the error and how to fix it in this video. Have fun learning Python with me! This channel is suitable for beginners or experienced programmers who want to learn Java, Python, pygame, R (or general principles), and also for instructors teaching programming.

The github repository with the code from this video is here:

If you're looking for an introductory programming textbook, Problem Solving with Python might be for you! Videos for the book are on this channel.
Print:
Or ebook:

If you're more interested in learning Python and game programming or Python and object-oriented programming, you might want Objects and Games with Python. Videos for the book are also on this channel.
Print:
Or ebook:

If you want to earn credit for learning to code, take an online course at CCRI! We have courses in Python, Java, and other languages:
Рекомендации по теме
visit shbcf.ru