We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e4508 commit c97b7bfCopy full SHA for c97b7bf
flow/defining_functions/default_arg.py
@@ -0,0 +1,6 @@
1
+def foo(x = 1):
2
+ print(x)
3
+
4
+n = 3
5
+foo(n)
6
+foo()
flow/defining_functions/none.py
@@ -0,0 +1,4 @@
+def foo():
+ """This function does not return any value."""
+print(foo())
flow/defining_functions/squares.py
@@ -0,0 +1,10 @@
+# the squars, n^2
+def square(x):
+ return x * x
+n = 15
7
+for i in range(n):
8
+ print(square(i), end = ' ')
9
10
+print()
0 commit comments