---
title: "Arunesh kumar (@kingarunesh) | Hashnode"
description: "Arunesh kumar (@kingarunesh) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@kingarunesh"
---

@kingarunesh

# Arunesh kumar

@kingarunesh · Joined February 2023

### [How to swap two variables value in python?](https://kingarunesh.hashnode.dev/how-to-swap-two-variables-value-in-python?utm_source=hashnode&utm_medium=feed)

For example, If you have a equal to 1 and b equal to 2 then get output a equal to 2 and b equal to 1. First create c variable then set c equal to a, a equal to b and b equal to c. Here is code, a = 1 b = 2 print("OLD a = ",a) print("OLD b = ",b) c ...

1 min read · [kingarunesh.hashnode.dev](https://kingarunesh.hashnode.dev/how-to-swap-two-variables-value-in-python?utm_source=hashnode&utm_medium=feed)

[Feb 14, 2023](https://hashnode.com/posts/how-to-swap-two-variables-value-in-python/63ec00df457a1976cc81e58e)
