Write a Python Program to Exchange The Value of Two Variables

Опубликовано: 15 Ноябрь 2022
на канале: Code With TJ
262
3

Hello Programmers, Welcome to my channel.

In this video you will learn about how to Write a Python Program to Exchange The Value of Two Variables

Python Scripts
======================
https://codewithtj.blogspot.com/2024/...

Python Functions Solved
==========================
https://codewithtj.blogspot.com/2023/...

Python Programs Solved
============================
https://codewithtj.blogspot.com/2023/...


Code
=============================
var1 = input("Enter Value of First Variable : ")
var2 = input("Enter Value of Second Variable : ")

var1, var2 = var2, var1

print("Value of First Variable After Exchange is : ", var1)
print("Value of Second Variable After Exchange is : ", var2)



Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners