Advertisement
Guest User

Untitled

a guest
May 30th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1.  
  2. def func(fish = "trout", dog = "corgi", book = "The Art Of War"):
  3.     print fish
  4.     print dog
  5.     print book
  6.  
  7. mydict = {"fish":"salmon", "book":"The Joy Of Cooking"}
  8. func(mydict)
  9.  
  10. ## Prints:
  11. #
  12. # {'fish': 'salmon', 'book': 'The Joy Of Cooking'}
  13. # corgi
  14. # The Art Of War
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement