Advertisement
Guest User

Untitled

a guest
Feb 1st, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. for e in ["test1", "test2"]:
  2. globals()[e] = lambda x : e
  3.  
  4.  
  5. >>> test1("hi")
  6. 'test2'
  7.  
  8. >>> test2("hi")
  9. 'test2'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement