Lesson 1 πŸ‘‰ 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?

✍ Python Notes

βœ… 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.

Python Variables

can be
Numbers myAge = 37
Strings myName = "Ben"
Booleans isItSaturday = False


def spam():
    eggs = 12
    return eggs

print spam()

# Spaces & tabs structure code