Vocabulary
Logic
Syntax
Describe the Code
400

These are control structures that do different things based on a Boolean value

What are conditionals?

400

These are the three main logical operations

What are AND, OR, and NOT?

400

This is the function that converts strings to numbers

What is int()?

400

This is the output of the code:

range(17,12,-1)

What is [17,16,15,14,13]?

800

These are the variables for the data that is passed into a function

What are arguments?

800

This is the Boolean value of:

True AND (NOT False)

What is True?

800

This is how we call functions from a module

What is modulename.function(arguments)?

800

This is the output of the code:

for x in range(6):

    if x % 2 != 0:

        print(x)

What is 1,3,5?

1200

This is the command for remotely logging onto the server (and what it stands for)

What is SSH (secure shell)?

1200

This is the Boolean value of:

(NOT True) OR False

What is False?

1200

This is the keyword used in functions to output data from the function

What is return?

1200

This is what this code does:

random.randint(1,100)

What is generates a pseudorandom number between 1 and 100?

1600

This is the term for the computer preparing a program to run?

What is compilation?

1600

This is how Boolean values are stored by the computer

What is 0 (False) and 1 (True)?

1600

This is how we denote a specific item in a list

What is list[x]?

1600

This is what the code will output:

print(-1 * abs(x))

What is print out negative x (whether x was originally negative or positive)?

2000

This is the character that is printed after every print() statement

What is a newline character?

2000

This is the logical operation that returns True when only one of the variables is True

What is XOR (exclusive or)?

2000

This is the function that adds something to the end of a list

What is append()?

2000

This is what this code means:

if __name__ == "__main__":

What is the main function (code that is run when the program is run)?

M
e
n
u