Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. LIST = [['Ann', '345', 'gry'], ['Jose', '567', 'hot']]
  2.  
  3. searched = str(input('SSN: '))
  4.  
  5. for e in LIST:
  6.     for i in e:
  7.         if i == searched:
  8.             print('Found it.')
  9.             loc = int(e.index(searched))
  10.             print(loc)
  11.             print(e.index(searched))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement