VARIBALES

(1) WHAT IS VARIABLE ? Variables are like empty containers used for storing data values. Just like we use a lunchbox to store our lunch in it, we use variables to store data. • phoneNumber • In the above example, phoneNumber is a variable used to store your phone number in it. (2) Create Variables characterName = "Eva" • In the above example characterName is the variable and Eva is its value. • '=' in above example assigns the value on the right to the variable on the left. # Create a variable userAge with value # <any number> and then run your code userAge = 15 (3) Update Variables Concept • The value of a variable can be changed/updated as many times as required after the variable is created. • For example, in the last chapter you created a variable: characterName = "Eva" • Now if you want to update the name to Pixie you can simply change the value by using "=" sign. characterName = 'Pixie' • Now the valu...