In programming, it is very vital to have a memory location that can be used to store data that is used for mathematical calculations or joining of words, etc.
Take your mind back to when you want to cook, rice and stew, one pot is used to cook rice and another pot is used to cook stew. After cooking them separately until they are done, you can now scoop them into a plate with the rice and stew combined for someone to eat. You can later rewash the pots and plates to cook and serve other types of foods. The pots and plates are likened to containers, memory locations called VARIABLES in programming.
Variables are memory locations that can store data of different types (numbers. characters, Boolean, objects, etc). You can use two variables to store two different numbers and then use the third one to store the sum of the two numbers.
Watch the video to see how variables are handled in python
#python #data #video #programming #variables
Comments