Guest User

Untitled

a guest
May 4th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. A = [1,2,'+','X','Z']
  2.  
  3. def doAsPerSym(sym):
  4.     for elem in A:
  5.         if elem == sym:
  6.             print('found this element {}'.format(elem))
  7.  
  8. doAsPerSym('+')
  9. # output: found this element +
Advertisement
Add Comment
Please, Sign In to add comment