What are variables?
Variables are containers for storing data values. They can be created instantaneously by assigning a value to the variable name
eg. var1=5 here ‘var1’ is the variable name and 5 is the value assigned to ‘var1’. We can use print() function to print the variable values but only typing the variable name works too. eg print(var1) can be just written as var1 to get the value of var1.

What are variable types?
Variables do not need to be declared with any particular type, but a type is assigned as soon as the variable is created. We can test…

Simran Gopal

Economics, Psychology, Art and Analytics

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store