Skip to content

Commit 7dc8166

Browse files
authored
Merge pull request #84 from braboj/codex/add-header-to-func_keyword_arguments.py
Add header to keyword arguments example
2 parents 65fdd31 + fa3d4ef commit 7dc8166

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/07_functions/func_keyword_arguments.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Calling functions with keyword arguments
2+
# -----------------------------------------------------------------------------
3+
# Describe how naming parameters improves readability and allows optional
4+
# argument ordering.
5+
16
def greet(name, age):
27
print("Hello, {0}! You are {1} years old.".format(name, age))
38

0 commit comments

Comments
 (0)