Skip to content

Instantly share code, notes, and snippets.

@FerdinaKusumah
Created December 5, 2019 01:37
Show Gist options
  • Save FerdinaKusumah/6fb6d505f58974dafd797f099570d62e to your computer and use it in GitHub Desktop.
Save FerdinaKusumah/6fb6d505f58974dafd797f099570d62e to your computer and use it in GitHub Desktop.
Swapping Value
"""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