How can I concatenate a variable | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I concatenate a variable

How can declare a variable that needs to take the value of another variable? Like giving to the variable aux(auxiliar),the same value that takes...for example a(which is a real number)...how can i show it?

18th Dec 2020, 7:14 PM
Chis Alex
Chis Alex - avatar
2 Answers
+ 2
Assuming you're using python and have the following vars: A = 19 B = 9 Now to make B the same as A: B = A The formula is just the var you want equal the value you want. Also you can do it immediately as you declares the var. Hope i understood you correctly.
18th Dec 2020, 7:47 PM
aviad59
aviad59 - avatar
0
Thanks.
18th Dec 2020, 7:51 PM
Chis Alex
Chis Alex - avatar