Python3 Basics # 1.3 | Python Operators | Unary | Logical | Identity | Python for Beginners

preview_player
Показать описание
Python3 Basics # 1.3 | Python Operators | Unary | Logical | Identity | Python for Beginners

Python Operators
1. Arithmethic
2. Assignment
3. Unary
4. Comparision
5. Identity
6. Membership
7. Logical
8. Bitwise

Python Unary Operator
====================
Unary arithmetic operations
All unary arithmetic (and bit-wise) operations have the same priority:

u_expr: power | "-" u_expr | "+" u_expr | "~" u_expr
The unary - (minus) operator yields the negation of its numeric argument.

The unary + (plus) operator yields its numeric argument unchanged.

The unary ~ (invert) operator yields the bit-wise inversion of its plain or long integer argument. The bit-wise inversion of x is defined as -(x+1). It only applies to integral numbers.

In all three cases, if the argument does not have the proper type, a TypeError exception is raised.

Python Logical Operator
====================
Operator Description Example
and Logical AND If both the operands are true then condition becomes true. (a and b) is true.
or Logical OR If any of the two operands are non-zero then condition (a or b) is true.
becomes true.
not Logical NOT Used to reverse the logical state of its operand. Not(a and b) is false.

Python Identity Operator
====================
Operator Description Example
is Evaluates to true if the variables on either side x is y, here is results
of the operator point to the same object and false in 1 if id(x) equals id(y).
otherwise.
is not Evaluates to false if the variables on either side x is not y, here is
of the operator point to the same object and true not results in 1 if id(x)
otherwise.

Python Membership Operator
========================

All the playlist of this youtube channel
========================================

1. Data Preprocessing in Machine Learning

2. Confusion Matrix in Machine Learning, ML, AI

3. Anaconda, Python Installation, Spyder, Jupyter Notebook, PyCharm, Graphviz

4. Cross Validation, Sampling, train test split in Machine Learning

5. Drop and Delete Operations in Python Pandas

6. Matrices and Vectors with python

7. Detect Outliers in Machine Learning

8. TimeSeries preprocessing in Machine Learning

9. Handling Missing Values in Machine Learning

10. Dummy Encoding Encoding in Machine Learning

11. Data Visualisation with Python, Seaborn, Matplotlib

12. Feature Scaling in Machine Learning

13. Python 3 basics for Beginner

14. Statistics with Python

15. Data Preprocessing in Machine Learning

16. Sklearn Scikit Learn Machine Learning

17. Linear Regression, Supervised Machine Learning
Рекомендации по теме
join shbcf.ru