Why do one have to use variables since you can tell the program to print what you stored in the variable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do one have to use variables since you can tell the program to print what you stored in the variable?

17th Aug 2017, 5:05 PM
Ice
Ice - avatar
2 Answers
+ 1
keep on going with the tutorial, you'll find the practical reasons to is them
17th Aug 2017, 6:21 PM
Jordan Chapman
Jordan Chapman - avatar
0
You can just tell to print/return the value if you want. Courses store them in variables before printing / returing just to make it easy for beginners to understand.
17th Aug 2017, 5:18 PM
Salekin
Salekin - avatar