What is var | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is var

Is it a function?

16th Jun 2019, 2:50 AM
Mike Harris
Mike Harris - avatar
3 Answers
+ 6
Let me just make a short remark to the post of Rik Wittkopp. There are some limitations in naming for variables. They can not start with a number and they can not contain any spaces / blancs. And keep in mind that python is case sensitive - that means that upper or lowecase matters.
16th Jun 2019, 5:50 AM
Lothar
Lothar - avatar
+ 4
Var is short for variable, which is why it is used in the lesson modules. Examples of variables are: x = 6 y = 7 z = x + y x, y & z are all variables. 6 & 7 are the values assigned to the variables. A variable can be written however you want, it is there to allow you to process the values
16th Jun 2019, 4:29 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 4
Good points Lothar. Thanks
16th Jun 2019, 10:05 AM
Rik Wittkopp
Rik Wittkopp - avatar