Created
September 9, 2021 16:24
-
-
Save SingAvi/8c66da440751e089e9a80e100699a24d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python Way | |
a = 5 | |
b = 10 | |
a,b = b,a | |
# ================= | |
# General Method | |
a = 5 | |
b = 10 | |
temp = 0 | |
temp = a # a (5) ka value in temp | |
a = b # b (10) ka value in a (replaced) | |
b = temp #temp (5) ka value ab b pe daldo , swap hogaya. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment