Learn practical skills, build real-world projects, and advance your career
Updated 2 years ago
Python Variables
1. Python Variable Names
Think of variables like containers which store the data values whether they are numbers, alphabets in the form of a string, integer, float or boolean etc.
Variable name can be:
- Short name (like a,b,c,d and x etc.) or
- Descriptive name (age, carname, total_volume).
x = 'Blue'
y = 4
# output variables using the print() function
print(x)
print(y)