Hi Guys,
I am new to python. I am trying to run one python code. But I am getting the below error.
list1 = ['Apple','Banana', 'Oranges']
index = '1'
print('Value at List Index 1', list1[index])
Traceback (most recent call last):
File "list-error.py", line 5, in <module>
print('Value at List Index 1', list1[index])
TypeError: list indices must be integers or slices, not str