Last active
May 8, 2021 09:59
-
-
Save computer-tutor/99fcd64e2d335ad8280e6756edd089b1 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
first = 'Jimmy' | |
second = 'Johny' | |
print('Before Swapping',first, second) # Jimmy Johny | |
first, second = second, first # swaps the variables | |
print("After swapping:", first, second) # Johny Jimmy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment