Python code
thelist=['a','b']
print(thelist[3:])
output
[]
Even though the list has only 2 elements, the call to thelist with index 3 does not give any index error.
Python code
thelist=['a','b']
print(thelist[3:])
output
[]
Even though the list has only 2 elements, the call to thelist with index 3 does not give any index error.
by
Tags:
Leave a Reply