xxxxxxxxxx
var something = something;
//a string is a word
string something = "hello";
// a float is a number with decimal (you have to add f after the number so not 1.5 but 1.5f)
float something =1.5f;
// a int or integer is a whole number
int something = 1;
A variable is simply a name to which a value can be assigned.
Variables allow us to give meaningful names to data.
The simplest way to assign a value to a variable is through the = operator.
svg viewer
A big advantage of variables is that they allow us to store data so that we can use it later to perform operations in the code.
Variables are mutable. Hence, the value of a variable can always be updated or replaced.
xxxxxxxxxx
//If you dont want to indicate anything yet//
int *Name of variable*;
//If you want to indicate something to use later on//
int *Name of variable* = *number or string*;
xxxxxxxxxx
from google.colab import output
#I don't know why nbextensions don't work with python3.6
with output.temporary():
!pip install --upgrade git+https://github.com/Kreijstal/colab_inspector.git
!python2.7 -m pip install --upgrade git+https://github.com/blois/colab_inspector.git #yes, really.
!jupyter nbextension install --py inspector
import inspector
# open a scratch cell (Ctrl+Alt+N)
# run there
# inspector.watch_globals()