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
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 ...