SunFounder Thales Kit for Raspberry Pi Pico, Release 1.0
Arithmetic Operators
You can use arithmetic operators to do some common mathematical operations.
Operator
Name
+
Addition
-
Subtraction
*
Multiplication
/
Division
%
Modulus
**
Exponentiation
//
Floor division
x
=
5
y
=
3
a
=
x
+
y
b
=
x
-
y
c
=
x
*
y
d
=
x
/
y
e
=
x
%
y
f
=
x
**
y
g
=
x
//
y
(a)
(b)
(c)
(d)
(e)
(f)
(g)
>>> %Run -c $EDITOR_CONTENT
8
2
15
1.666667
2
125
1
8
2
15
>>>
3.5. MicroPython Basic Syntax
129
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 ...