Afiz โšก๏ธ
Afiz โšก๏ธ

@itsafiz

10 Tweets Feb 03, 2023
Operators in Python (with code snippets)
In this thread, we learn about different types of operators in Python. Their syntax and how to use them with code samples.
A Thread ๐Ÿงต๐Ÿ‘‡
What are operators?
Operators are special symbols that can manipulate the values of one or more variables(operands).
Arithmetic operators in Python
Arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication, and division.
Assignment operators in Python
Assignment operators are used to assign values to variables.
Assignment operators are ๐Ÿ‘‡
=
+=
*= etc
Comparison operators in Python
Comparison operators are used to compare two values and return either True or False.
Logical Operators in Python
Logical operators are and , or , not operators. These are used for logical operations. Logical operators are also used to combine two conditions.
You might want to check out my other threads on Python basics.
Common Errors in Python ๐Ÿ‘‡
Built-in Data types in Python ๐Ÿ‘‡
The remaining three operators will be covered in the next thread ๐Ÿงต
1. Bitwise operators
2. Identity Operators
3. Membership Operators
That's all for today!
Thanks for reading! I hope you like the content.
1. Follow me @itsafiz for such content.
2. Like ๐Ÿ’› and RT the first tweet for better reach. Thanks

Loading suggestions...