An Introduction To Python: Variables

Variables are often used to store data inside a Python script. take for example you want to take a user input, you can use a variable to save your input.

# This is an example of a variable being used in a print() script

greeting = 'Hello, World!'
print(greeting)
Shopping Cart