Coding notes
Coding notes
Coding Notes
Basics:
For A.I :
Python
VARIABLE
● Variable (something which changes)
● The variable stays the same but the value inside
it changes.Variable store values which vary, are
not permanent
● In computing, a variable is a piece of memory
that stores a value that can be changed
● To create a variable we first need to declare it
and then initialize it
● In declaration we need to mention data type first
and then name the variable which must relate to
the values we are assigning the variable.
int x; int is the data type while x is the variable.
● In initialization we assign the value to the
variable.
x= 123;
We can even do those both steps together:
int x = 123;