We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85cabee commit ef18c1fCopy full SHA for ef18c1f
1 file changed
examples/07_functions/func_positional_arguments.py
@@ -1,3 +1,8 @@
1
+# Demonstrates how functions receive arguments by their position
2
+# -----------------------------------------------------------------------------
3
+# Each value is matched to a parameter based on where it appears,
4
+# so the order of the provided arguments matters.
5
+
6
def greet(name, age):
7
print("Hello, {0}! You are {1} years old.".format(name, age))
8
0 commit comments