micropython: add micropython component
This commit is contained in:
10
components/language/micropython/tests/basics/fun2.py
Normal file
10
components/language/micropython/tests/basics/fun2.py
Normal file
@@ -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)
|
Reference in New Issue
Block a user