find the place of element in list python
streaming = ['netflix', 'hulu', 'disney+', 'appletv+']
index = streaming.index('disney+')
print('The index of disney+ is:', index)
Are there any code examples left?
New code examples in category Python
streaming = ['netflix', 'hulu', 'disney+', 'appletv+']
index = streaming.index('disney+')
print('The index of disney+ is:', index)