Skip to content

Commit

Permalink
Merge pull request #124 from bannana/patch-1
Browse files Browse the repository at this point in the history
Double equals means equality. name == yasoob is false.
  • Loading branch information
yasoob committed Oct 18, 2016
2 parents 4330665 + 3bc7fbe commit 33016cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions args_and_kwargs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ arguments** in a function. Here is an example to get you going with it:
def greet_me(**kwargs):
for key, value in kwargs.items():
print("{0} == {1}".format(key, value))
print("{0} = {1}".format(key, value))
>>> greet_me(name="yasoob")
name == yasoob
name = yasoob
So you can see how we handled a keyworded argument list in our function.
This is just the basics of \*\*kwargs and you can see how useful it is.
Expand Down

0 comments on commit 33016cf

Please sign in to comment.