object is not subscriptable. Why it happened and how to fix it.

Опубликовано: 30 Сентябрь 2024
на канале: Python for Everyone
192
11

You expected a list and want to use indexing (subscription) to get an element from it. But then you got a Type Error: object is not subscriptable. What to do next?

M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Enroll in one of my courses online: https://pythonforeveryone.com

#notsubscriptable #indexing #python