Vocabulary
Syntax
Function
Loops
Miscellaneous
100

This term refers to the process of finding and fixing errors in code.

Debugging

100

This symbol is used in Python to indicate the start of a comment.

##############################

100

This Python function allows information to be displayed on the screen.

print()

100

This type of loop in Python is used when the number of iterations is known in advance.

For loops

100

What are the two types of loops in Python we have learned about?

For and While loops

200

This is a sequence of characters, such as letters, numbers, and symbols, enclosed in quotes in Python.

String

200

This character must be at the end of an if statement

: colon

200

This Python function allows you to ask the user for information, and store it into a variable

input()

200

This is a type of loop that will continue as long as its condition remains True.

While loop

200

What are the two symbols we are allowed to use to concatenate a sentence?

+ and ,

(Plus and Comma)

300

The word for combining Strings with variables in a print statement to create sentences.

Concatenation

300

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)

300

This function allows you to get a random number between two values.

random.randint()

300

This type of loop can sometimes result in an endless cycle if its condition never becomes False.

Infinite Loop

300

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

400

This term refers to a mathematical operation that gives you back the remainder when two numbers are divided.

Modulo

400

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

400

This function allows you to raise a number to a certain power. Example: 53

Math.pow()

400

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

400

FREE POINTS FOR THE TEAM WHO PICKED THIS

 

500

This word for changing one data type into another. For example - int(input("Enter a number")

Casting

500

The word you must type at the top of your program, which allows you to use functions from other places.

import

500

This function allows you to take the square root of a number.

Math.sqrt()

500

How many times would this loop run?

x = 0

while x < 5:

      x = x + 1

5

500

Draw your best Python!

...

M
e
n
u