IndexError In Python #6 | Exception Handling in Python | Python Tutorials in Hindi | SDP Guruji

preview_player
Показать описание
Exception Handling Tutorials, Python For Beginners, Python Tutorials, Exception Handling in Hindi, IndexError in Exception Handling in Hindi, Exception Handling
Dear Viewers,
In the series of programming, we’ve been surfing through different types of errors in Python
and how to handle them. Now, in this tutorial, we will see another type of error i.e. IndexError.
What is IndexError?
IndexError raised mainly with lists or tuples whenever we are attempting to access the
element out of range of list.
Example:
l = [ 1, 2, 3, 4]
print(l[4]) // as range of list is from 0 to 3, this will give an ‘IndexError’.
How to handle it?
As IndexError is an inbuilt error, using ‘try – except’, it can be handled.
Keep practice about these error handling, it is very crucial.
N Yess !! Don’t hesitate to share your precious suggestions/feedbacks!! Get your all doubts crystal
clear!!
-----------------------------------------------------------------------------------------------------------------------------------

If you have missed anything regarding python, surf through these links below:

--------------------------------------------------------------------------------------------------------------------------------------

You’ll also find us here!!

--------------------------------------------------------------------------------------------------------------------------------------
For more such informative Python videos,
colour the thumbs up button blue, share the videos, and yes don’t forget to hit the subscribe button and press the bell icon for remainders.
Stay Tuned!!!

#SDPGuruji
#exceptionhandling
#exception
#exceptioninpython
#indexerror
#except
#error
#pythonexercise
#SDPGurujiPython
#PythonSDPGuruji
#PythonTutorial
#Hindi
Рекомендации по теме
Комментарии
Автор

Sir, element in tuples can also accessible by indexing?

ishikadabare
visit shbcf.ru