πŸŽ‰ Hello again, World!

🎯 Learning Target

I can create variables in Python.

πŸ‘‰ Do Now

Fill in as much of this Venn Diagram as you can:

return to Python

Remember this?

Why does it say Let's review Python?

Last year, we used Python 2. This year, we will be using Python 3. There are a few important differences, but for today, the most important is this:

# in PYthon 3, print is a FUNCTION:
print("hello there")
#   ^ parentheses ^

Variables

Store a variable under a name.

Name ONE Equal sign Value
name = SK
grade = 9

Rules for Variable Name

πŸ”‘words

Each programming language has a set of words that are reserved by the language for programmatic purposes.

Some Keywords in Python are : print, False, True, else, if

Rules of πŸ‘ for Variable Names

Datatypes

Type Description Example
String Any characters inside "" This is a string.
Integer Whole numbers 3,42,-1002
Float Numbers with decimals. 3.42, -10.02
Boolean Only two values True, False, 3>42, 3.42>-10.02

βͺ Python Review

πŸ‘‰ Join our repl classroom.

🌢

Create a variable that is the quotient of two other variables (hint: you will need to store values in that variable first).

🌢🌢🌢

The operations between boolean values are AND and OR. Create a variable that store the value of True or False and then prints it. Create another value that stores the value of True and False. Print the variable.