Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logical_operators.rst #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions source/logical_operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,18 @@ Solution
turtle.setheading(turtle.towards(0,0))
turtle.forward(1)
distance = distance - 1

__________
We can also get the XOR logic ooeration using cap Sysmbol (^).
Example :
If we take XOR operation of 4 and 3 then we can write in python as below:

num1 = 4
num2 = 3

xor = num1 ^ num2
print(f"{num1} XOR {num2}" : ,xor)

__________
OUTPUT :
4 XOR 3 : 7