Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # fn_dict.py
- def f1(x,y):
- return 1,x,y
- def f2(x,y):
- return 2,x,y
- def f3(x,y):
- return 3,x,y
- for x in 'abc':
- for y in 'xyz':
- for i in 1,3,2:
- print {1:f1,2:f2,3:f3}[i](x,y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement