summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/fun2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/fun2.py')
-rw-r--r--tests/basics/fun2.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/basics/fun2.py b/tests/basics/fun2.py
new file mode 100644
index 0000000000..a3c3e7babf
--- /dev/null
+++ b/tests/basics/fun2.py
@@ -0,0 +1,10 @@
+# calling a function from a function
+
+def f(x):
+ print(x + 1)
+
+def g(x):
+ f(2 * x)
+ f(4 * x)
+
+g(3)