Hello World!
In your IDE of choice, type this, and run the code:
print "Hello, world."
# Sorry, I had to.
What did you see come out?
β
A variables stores data and gives it a name.
β
Two kinds of data are numbers and booleans.
β
In Python, white space is used to structure code.
β
The interpreter runs your code line by line.
β
# makes a comment in Python.
can be
Numbers myAge = 37
or
Strings myName = "Ben"
or
Booleans isItSaturday = False
def spam():
eggs = 12
return eggs
print spam()
# Spaces & tabs structure code