Skip to content

Commit 2774f02

Browse files
authored
Update README.md
1 parent aeb5432 commit 2774f02

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

README.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this I will try to cover basics of python which is required for Data Science.
2626
> * Try to keep variables in plain and simple language so its easy to understand what values they represent.
2727
> * Avoid using variables which are similar to the attributes or function in the in-built libraries.
2828
29-
## Operators
29+
## [Operators](https://github.com/Ankit-Khule/Introduction-to-Python/blob/master/Operators.ipynb)
3030
## Types of Operators in Python
3131

3232
* 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.
5656

5757
![Logical](https://github.com/Ankit-Khule/Python-for-Data-Science/blob/master/Images/Logical.JPG)
5858

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+
6768
* 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)
7073

7174
* 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

Comments
 (0)