Created
December 5, 2019 01:37
-
-
Save FerdinaKusumah/6fb6d505f58974dafd797f099570d62e to your computer and use it in GitHub Desktop.
Swapping Value
This file contains hidden or 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
"""Swapping value""" | |
a, b = 15, True | |
print("Before Swapping a = {}, b = {}".format(a, b)) | |
# Before Swapping a = 15, b = True | |
a, b = b, a | |
print("After Swapping a = {}, b = {}".format(a, b)) | |
# After Swapping a = True, b = 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment