Types
Smooth Operators
Equality & Assignment
What Broke?
General
100

This Python data type is used to store sequences of Unicode characters (ex. Words, letters, or numbers) and is enclosed in either single or double quotes.

What is a string?

 

100

This operator, represented by -, can be used for ______ or to indicate a negative number.

What is the subtraction operator/ subtraction?

100

This single equals sign in Python is used to assign a value to a variable.

What is the = operator?

100

What's wrong with this code? 

print "Hello, world!"

We need () parentheses!!!

100

In Python, this keyword is used to define a function.

What is def?

200

This Python numeric type is used to represent whole numbers without decimal points.

What is an integer?

200

This operator, represented by *, is used to ____ two numbers.

What is the multiplication operator/ used to multiply?

200

This operator both adds and assigns a value to a variable in one step.

What is the += operator?

200

Whats broke?

def greet():

print("Hello!")

we need indentation!!!

def greet():

      print("Hello!")

200

In Python, this is the term used to refer to a variable that holds a value that cannot be changed after assignment. Thus its value remains ____.

What is a constant?

300

This Python numeric type is used to represent numbers with decimal points.

What is a float?

300

This operator, represented by *, is used for multiplying two numbers.

What is the multiplication operator?

300

how else could you write the following code: x = x + 5

x += 5

300

What's broken in the following code?

name = "Alice"

print(nam)

We need consistency

name = "Alice"

print(name)

300

This is the type of error that occurs when Python encounters code that doesn’t follow the rules regarding how to type something out.

Syntax error!

400

In Python, this data type has only two possible values: True and False.

What is a boolean?

400

This operator, represented by **, is used in Python to raise a number to the power of another.

What is the exponentiation operator?

400

What is the output

y = 10  

y += 2 

y = 12

400

Whats Broken?

def greet():

    print("Hello!")

grett()

greet should be spelled right on line 3!

def greet():

    print("Hello!")

grett()

400

This type of Python error occurs when an operation or function is applied to an object of inappropriate type.

What is a TypeError?

500

This is the term for a named reference that stores a value in Python, allowing you to access and manipulate data throughout your program. you assign it with a single equal sign!

What is a variable?

500

This operator, represented by /, is used to _______ two numbers and always returns a float.

What is the division operator?

500

This operator checks if two values are equal and returns a Boolean result.

What is the == operator?

500

Are Bugs bad?

Not always but often yes, examples of good bugs can be found in Minecraft (creeper), the civ game series (Nuclear Gandhi generating buzz), and space invaders ( difficulty ramp up over time)

500

This loop in Python repeats a block of code as long as a given condition is True

What is a while loop?

M
e
n
u