circuitpython/tests/pybnative/for.py
2014-05-07 23:27:45 +01:00

16 lines
169 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))