This term refers to the process of finding and fixing errors in code.
Debugging
This symbol is used in Python to indicate the start of a comment.
##############################
This Python function allows information to be displayed on the screen.
print()
This type of loop in Python is used when the number of iterations is known in advance.
For loops
What are the two types of loops in Python we have learned about?
For and While loops
This is a sequence of characters, such as letters, numbers, and symbols, enclosed in quotes in Python.
String
This character must be at the end of an if statement
: colon
This Python function allows you to ask the user for information, and store it into a variable
input()
This is a type of loop that will continue as long as its condition remains True.
While loop
What are the two symbols we are allowed to use to concatenate a sentence?
+ and ,
(Plus and Comma)
The word for combining Strings with variables in a print statement to create sentences.
Concatenation
You must press this key in order to allow Python to understand which lines of code are inside of a loop or if statement
Tab (Indentation is fine)
This function allows you to get a random number between two values.
random.randint()
This type of loop can sometimes result in an endless cycle if its condition never becomes False.
Infinite Loop
What will the following code print out, given the user entered the numbers 10 and 5?
x = input("Enter a number")
y = input("Enter a number")
print(x + y)
105
This term refers to a mathematical operation that gives you back the remainder when two numbers are divided.
Modulo
This Python keyword is used to define a block of code that will execute when a specified condition is false in an if statement.
Else
This function allows you to raise a number to a certain power. Example: 53
Math.pow()
Which loop in Python is appropriate to use in the case where you do not know how many times a loop should run?
while loop
FREE POINTS FOR THE TEAM WHO PICKED THIS
This word for changing one data type into another. For example - int(input("Enter a number")
Casting
The word you must type at the top of your program, which allows you to use functions from other places.
import
This function allows you to take the square root of a number.
Math.sqrt()
How many times would this loop run?
x = 0
while x < 5:
x = x + 1
5
Draw your best Python!
...