I have a mac and jupyter notebook doesn’t work on my laptop, so I am using pycharm and 3.9 version of python but as indexing taught by sir in the video gives each alphabet an index but in my case whole word is taking a single index. Is this feature not supported in python 3.9 or I am doing something wrong?
I have attached the code below
b=[‘kushagra’]
print(b[1])
Traceback (most recent call last):
File “/Users/kushagra/Desktop/python/project1/lists.py”, line 19, in
print(b[2])
IndexError: list index out of range