Skip to content

Instantly share code, notes, and snippets.

@pranjalAI
Created September 7, 2022 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pranjalAI/61a6f6c0d2fdcba21c399d3c4102e60c to your computer and use it in GitHub Desktop.
Save pranjalAI/61a6f6c0d2fdcba21c399d3c4102e60c to your computer and use it in GitHub Desktop.
i = 50
j = 100
temp = i
i = j
j = temp
print('The value of i after swapping: {}'.format(i))
print('The value of j after swapping: {}'.format(j))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment