summaryrefslogtreecommitdiff
path: root/tests/micropython/native_while.py
blob: ccf0ae0e03515c4ff0fd6a0528b89fc6bc83eba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# test native while loop


@micropython.native
def f(n):
    i = 0
    while i < n:
        print(i)
        i += 1


f(2)
f(4)