SunFounder Thales Kit for Raspberry Pi Pico, Release 1.0
Assignment operators
Assignment operators can used to assign values to variables.
Operator
Example
Same As
=
a = 6
a =6
+=
a += 6
a = a + 6
-=
a -= 6
a = a - 6
*=
a
*=
6
a = a * 6
/=
a /= 6
a = a / 6
%=
a %= 6
a = a % 6
**=
a
**=
6
a = a ** 6
//=
a //= 6
a = a // 6
&=
a &= 6
a = a & 6
|=
a
|=
6
a = a | 6
^=
a ^= 6
a = a ^ 6
>>=
a >>= 6
a = a >> 6
<<=
a <<= 6
a = a << 6
a
=
6
a
*=
6
(a)
>>>
%
Run test
.
py
36
>>>
Comparison Operators
Comparison operators are used to compare two values.
Operator
Name
==
Equal
!=
Not equal
<
Less than
>
Greater than
>=
Greater than or equal to
<=
Less than or equal to
a
=
6
b
=
8
(a
>
b)
>>>
%
Run test
.
py
False
>>>
Return
False
, beause the
a
is less than the
b
.
130
Chapter 3. For MicroPython User
Содержание Thales Kit
Страница 1: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 Jimmy SunFounder Jun 04 2021 ...
Страница 2: ......
Страница 4: ...ii ...
Страница 6: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 2 CONTENTS ...
Страница 10: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 6 Chapter 1 Introduction to Raspberry Pi Pico ...
Страница 12: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 8 Chapter 2 What is Included in This Kit ...
Страница 13: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 2 1 Components List 2 1 Components List 9 ...
Страница 42: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 38 Chapter 2 What is Included in This Kit ...
Страница 140: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 136 Chapter 3 For MicroPython User ...
Страница 164: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 160 Chapter 4 For Arduino User ...