micropython: add micropython component
This commit is contained in:
12
components/language/micropython/tests/basics/while1.py
Normal file
12
components/language/micropython/tests/basics/while1.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# basic while loop
|
||||
|
||||
x = 0
|
||||
while x < 2:
|
||||
y = 0
|
||||
while y < 2:
|
||||
z = 0
|
||||
while z < 2:
|
||||
z = z + 1
|
||||
print(x, y, z)
|
||||
y = y + 1
|
||||
x = x + 1
|
Reference in New Issue
Block a user