@@ -26,7 +26,7 @@ In this I will try to cover basics of python which is required for Data Science.
26
26
> * Try to keep variables in plain and simple language so its easy to understand what values they represent.
27
27
> * Avoid using variables which are similar to the attributes or function in the in-built libraries.
28
28
29
- ## Operators
29
+ ## [ Operators] ( https://github.com/Ankit-Khule/Introduction-to-Python/blob/master/Operators.ipynb )
30
30
## Types of Operators in Python
31
31
32
32
* Arithmetic Operators (For Basic calculation Purpose)
@@ -56,18 +56,23 @@ In this I will try to cover basics of python which is required for Data Science.
56
56
57
57
![ Logical] ( https://github.com/Ankit-Khule/Python-for-Data-Science/blob/master/Images/Logical.JPG )
58
58
59
- * Bitwise Operator (Binary numbers operations)
60
- * Bitwise And '&'
61
- * Bitwise OR '|'
62
- * Bitwise XOR '^'
63
- * Bitwise Not '~ '
64
- * Left shift '<<'
65
- * Right shift '>>'
66
-
59
+ * Bitwise Operator (Used to compare binary numbers i.e numbers which are represented in 0 and 1)
60
+ * Bitwise And '&' - Set each bit to 1 if both bits are 1 eg: 1001 ** &** 1010 will give --> 1000
61
+ * Bitwise OR '|' - Set each bit to 1 if one of the bits is 1 eg: 1001 ** |** 1010 will give --> 1011
62
+ * Bitwise XOR '^' - Set each bit to 1 if only one of the bits is 1 eg: 1001 ** ^** 1010 will give --> 0011
63
+ * Left shift '<<' - shift left by inserting zeroes from left and right most digit is removed eg: 1001 ** <<** 2 will give --> 0010
64
+ * Right shift '>>' - shift rigth by inserting zeroes from right and left most digit is removed eg: 1011 ** >>** 2 will give --> 1100
65
+
66
+ ![ bitwise] ( https://github.com/Ankit-Khule/Introduction-to-Python/blob/master/Images/bitwise.JPG )
67
+
67
68
* Identity Operator (For checking the identity of constants and variables)
68
- * is
69
- * is not
69
+ * is - returns true if the objects are similar
70
+ * is not - returns true if the objects are not similar
71
+
72
+ ![ Identity] ( https://github.com/Ankit-Khule/Introduction-to-Python/blob/master/Images/Identity.JPG )
70
73
71
74
* Membership Operator (For finding relations between two variables)
72
- * in
73
- * not in
75
+ * in - Returns true if the value is present in the object
76
+ * not in - Returns true if the value is not present in the object
77
+
78
+ ![ Membership] ( https://github.com/Ankit-Khule/Introduction-to-Python/blob/master/Images/Membership.JPG )
0 commit comments