circuitpython/tests/pybnative/for.py
Scott Shawcroft b057fb8a4b
codeformat
2021-04-19 22:22:44 -07:00

20 lines
173 B
Python

import pyb
@micropython.native
def f1(n):
for i in range(n):
print(i)
f1(4)
@micropython.native
def f2(r):
for i in r:
print(i)
f2(range(4))