Run ❯
Get your
own Python
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
thistuple = (1, 3, 7, 8, 7, 5, 4, 6, 8, 5) x = thistuple.index(8, 4, 7) #This will return an error, because there are no occurrences of the value 8 between index 4 and 7 print(x)
Traceback (most recent call last):
File "./prog.py", line 3, in <module>
ValueError: tuple.index(x): x not in tuple