
SunFounder Thales Kit for Raspberry Pi Pico, Release 1.0
x
=
10
while
x
>
0
:
(x)
x
-=
1
>>> %Run -c $EDITOR_CONTENT
10
9
8
7
6
5
4
3
2
1
Break Statement
With the break statement we can stop the loop even if the while condition is true:
x
=
10
while
x
>
0
:
(x)
if
x
==
6
:
break
x
-=
1
3.5. MicroPython Basic Syntax
117
Summary of Contents for Thales Kit
Page 1: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 Jimmy SunFounder Jun 04 2021 ...
Page 2: ......
Page 4: ...ii ...
Page 6: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 2 CONTENTS ...
Page 140: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 136 Chapter 3 For MicroPython User ...
Page 164: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 160 Chapter 4 For Arduino User ...