Write a program in Python to copy one variable into another using assignment operator. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program in Python to copy one variable into another using assignment operator.

Examples will help.

6th Jan 2022, 8:55 AM
Saurabh Kumar
Saurabh Kumar - avatar
4 Answers
+ 3
An attempt would be even better
6th Jan 2022, 9:09 AM
Slick
Slick - avatar
+ 1
Its_krish01 is it like x , y = y , x ??
6th Jan 2022, 9:22 AM
Saurabh Kumar
Saurabh Kumar - avatar
+ 1
Yep
6th Jan 2022, 9:25 AM
Krish
Krish - avatar
0
It's straightly similar to the swap question that you probably have done before while learning python. By the way, if you got confused by the word "Assignment", then "=" is the assignment operator.
6th Jan 2022, 9:17 AM
Krish
Krish - avatar