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?
This operator, represented by -, can be used for ______ or to indicate a negative number.
What is the subtraction operator/ subtraction?
This single equals sign in Python is used to assign a value to a variable.
What is the = operator?
What's wrong with this code?
print "Hello, world!"
We need () parentheses!!!
In Python, this keyword is used to define a function.
What is def?
This Python numeric type is used to represent whole numbers without decimal points.
What is an integer?
This operator, represented by *, is used to ____ two numbers.
What is the multiplication operator/ used to multiply?
This operator both adds and assigns a value to a variable in one step.
What is the += operator?
Whats broke?
def greet():
print("Hello!")
we need indentation!!!
def greet():
print("Hello!")
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?
This Python numeric type is used to represent numbers with decimal points.
What is a float?
This operator, represented by *, is used for multiplying two numbers.
What is the multiplication operator?
how else could you write the following code: x = x + 5
x += 5
What's broken in the following code?
name = "Alice"
print(nam)
We need consistency
name = "Alice"
print(name)
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!
In Python, this data type has only two possible values: True and False.
What is a boolean?
This operator, represented by **, is used in Python to raise a number to the power of another.
What is the exponentiation operator?
What is the output
y = 10
y += 2
y = 12
Whats Broken?
def greet():
print("Hello!")
grett()
greet should be spelled right on line 3!
def greet():
print("Hello!")
grett()
This type of Python error occurs when an operation or function is applied to an object of inappropriate type.
What is a TypeError?
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?
This operator, represented by /, is used to _______ two numbers and always returns a float.
What is the division operator?
This operator checks if two values are equal and returns a Boolean result.
What is the == operator?
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)
This loop in Python repeats a block of code as long as a given condition is True
What is a while loop?