circuitpython/tests/basics/fun2.py

11 lines
108 B
Python
Raw Permalink Normal View History

# calling a function from a function
def f(x):
print(x + 1)
def g(x):
f(2 * x)
f(4 * x)
g(3)