Vocab #1
Vocab #2
Errors
Thriller
100

What does a # mean?

Comment

100

What is an error that does not occur until the program has started to execute but that prevents the program from continuing.

Syntax Error

100

Find the error in the code:

Name = inpt('What is your name?')


the function 'input' is spelled incorrectly.
100

This person starred in the hit music video Thriller?

Michael Jackson

200

What is a def?

Defines a function

200

What is An interactive user interface to the Python interpreter. The user of a Python shell types commands at the prompt (>>>), and presses the return key to send these commands immediately to the interpreter for processing?

What is Python Shell

200
Find the error in the code:

Num1 = input('What is the first number?')

Num2 = input('What is the second number?')

Answer = Num1 + Num2

print(Answer)

The two variables should be converted into integers before addition.
200

What is the last line of the song?

What is "AHAHAHHAHAHAHAHAHAHA!"?

300

What is a break?

Used to exit a loop.

300

What is an algorithm?

What is a general step by step process for solving a problem?

300

Find the error in the code:

# this code is supposed to divide a number by 5 and leave all decimals

Number = input('What is the number you want to divide?')

Answer = int(number) / 5

print(Answer)

In order to have leave decimals in the answer, you have to convert the number to a float first.

300

This year was the production and release of Thriller.

1982

400

What is IPython?

What is interactive shell for interactive computing.


400

What does immutable mean?

Cannot be changed after its created.

400

Find the error in the code:

# This code is supposed to find the amount of remainders in any given number divided by 7.

Number = input(What is the number you want to divide?)

Answer = int(Number) % 7

print(Answer)

In the input function, there are no quotation marks around the question.

400
What was the song ​T​​​hriller originally named?
What is Starlight?
500

What is a high level language?

What is it is designed to be easy for humans to read and write.

500

What is the process of analyzing the syntactic structure of the code? 

What is parsing?

500

Find the error in the code:

#This program is supposed to find the year that the person was born

lastYear = input('What year was your most recent birthday?')

Age = input('What is your age?')

birthYear = int(lastYear) - int(Age)

prnt(birthYear)

The function 'print' was spelled incorrectly.

500

Who wrote the song Thriller? 

Robert Ludlum