Print with variables

Variables are merely container of some values.

In the below program, the value of 5 is stored in the variable x. Since the variable x is not included in the quotes, python attempts to interpret it. It looks at the variable x and displays the value contained in it.

x = 5
print(x)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX



You can assign any number of characters (called a string) to a variable

fruit = 'apples'
print('I like',fruit)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX