Learn practical skills, build real-world projects, and advance your career

Variables

Variables are containers for storing data values.In other words, a variable in a python program gives data to the computer for processing.

Every value in Python has a datatype. Different data types in Python are Numbers, List, Tuple, Strings, Dictionary, etc. Variables can be declared by any name or even alphabets like a, aa, abc, etc.

Let's see an example...

x = 100
y = "FSEAI"
print(x)
print(y)
100 FSEAI

Variables do not need to be declared with any particular type and can even change type after they have been set