Advertisement
Guest User

Untitled

a guest
Apr 15th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import time as t
  2.  
  3. def farg1():
  4.     print("FUNCTION 1")
  5.  
  6. def farg2():
  7.     print("FUNCTION 2")
  8.  
  9. def function(**kwargs):
  10.     for i in kwargs:
  11.         kwargs[i]()
  12.  
  13. while True:
  14.         function(f=farg1,s=farg2)
  15.         print("----------------------")
  16.         t.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement