SHARE
TWEET

Untitled

a guest Dec 6th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def function(**keywords):
  2.     for key, value in keywords:
  3.          print(value)
  4. joe = 'joe'
  5. bug='bug'
  6. parameter_list = ('name=joe, insect=bug', 'name=joe')
  7.  
  8. # test parameters my hacky way
  9. for parameters in parameter_list:
  10.     # place to test function
  11.     exec('function('+parameters+')', locals(), globals())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top