EasyManuals Logo

SunFounder ESP32 User Manual

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #307 background imageLoading...
Page #307 background image
SunFounder ESP32 Starter Kit
(continued from previous page)
print(f)
print(g)
>>> %Run -c $EDITOR_CONTENT
8
2
15
1.66667
2
125
1
8
2
15
>>>
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
print(a)
>>> %Run test.py
36
>>>
3.6. 1.6 (Optional) MicroPython Basic Syntax 301

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SunFounder ESP32 and is the answer not in the manual?

SunFounder ESP32 Specifications

General IconGeneral
BrandSunFounder
ModelESP32
CategoryController
LanguageEnglish