73 - enumerate

Run Settings
LanguagePython
Language Version
Run Command
for i,char in enumerate("Hello"): print(i, char) # What if we have a tuple? for i,char in enumerate((1,2,3)): print(i, char) # I wanna know the index of the 50th element in the range: for i,char in enumerate(list(range(100))): if char == 50: print(f'index of 50 is: {i}')
Editor Settings
Theme
Key bindings
Full width
Lines