Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # all2index.py
- a = ["zero","bingo","bingo",'three','four','bingo']
- ''' ["zero"," 1 "," 2 ",'three','four',' 5 '] '''
- L = [index for index in range(len(a)) if a[index] == 'bingo']
- print L
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement