Variables
Learn to declare, delete, and concatenate variables in Python.
A Python variable is a reserved memory location that stores values. It is used to provide data for processing during run time. Every value in Python is associated with a type. Some examples of data types are numbers, strings, and objects.
Declaring a variable
A Python variable can be declared like this:
Press + to interact
p = 200print(p)
We do not need to put any data type before the variable, as is required in some other programming languages (C, Java, etc.). In other words, Python is not statically typed ...
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.