How To Fix The 10 Most Common Python Errors

preview_player
Показать описание
Here are the tip 10 errors you will encounter in Python, and also how you can fix them. Do let me know in the comments section below about your experience with errors, or if there are any in particular that you have some experience with!

▶ Become job-ready with Python:

▶ Follow me on Instagram:

00:00 Intro
00:28 AttributeError
01:20 AssertionError
02:05 ImportError
03:05 SyntaxError
04:26 TypeError
05:06 Break
05:19 IndexError
06:01 NameError
06:44 RecursionError
07:27 IndentationError
08:06 ValueError
09:10 Conclusion
Рекомендации по теме
Комментарии
Автор

I think this video was well worth doing, thank you. It's a great quick reference

castlecodersltd
Автор

Another problem beginners make is naming their Python file the same as a module they’re trying to import in the same file. For example, if a beginner was watching a YT video about the Python ‘math‘ module, they might name their file, “math.py” (as they follow along) then - inside - they “import math” at the top. Oops, that’s not going to work. 😟

williamsquires
Автор

thanks! i always get these errors and spend ages trying to fix them! first btw

slippy
Автор

it does not throw an error but it just does not work. I forgot to put the parenthesis at the end of a function. and similarly forgot to call the main() and could not understand why it did not work.

ttrev
Автор

one annoying error is that, you can not indent your code with both spaces and tab(s) you must either use spaces or tab, if you mix them, you have to make them uniform. and you may not know that which one is less than the other, and that could be annoying

xzex
Автор

excellent video, my friend
error handling helps with
Python garbage collection

topcivilian
Автор

what about a TypeError: ‘ NoneType’ object is not subscriptable?

potatocookies
Автор

i want more detailed info abt the ValueError in python,

shashwatmangulkar
Автор

What python complier is this am a beginner in python coding

bright_hustleTV
Автор

What code editor are you using? I like it a lot!!

pl_asma