Advertisement
here2share

# all2index.py

Feb 17th, 2020
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. # all2index.py
  2.  
  3. a = ["zero","bingo","bingo",'three','four','bingo']
  4. ''' ["zero","  1  ","  2  ",'three','four','  5  '] '''
  5.  
  6. L = [index for index in range(len(a)) if a[index] == 'bingo']
  7. print L
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement