What does a # mean?
Comment
What is an error that does not occur until the program has started to execute but that prevents the program from continuing.
Syntax Error
Find the error in the code:
Name = inpt('What is your name?')
This person starred in the hit music video Thriller?
Michael Jackson
What is a def?
Defines a function
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
Num1 = input('What is the first number?')
Num2 = input('What is the second number?')
Answer = Num1 + Num2
print(Answer)
What is the last line of the song?
What is "AHAHAHHAHAHAHAHAHAHA!"?
What is a break?
Used to exit a loop.
What is an algorithm?
What is a general step by step process for solving a problem?
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.
This year was the production and release of Thriller.
1982
What is IPython?
What is interactive shell for interactive computing.
What does immutable mean?
Cannot be changed after its created.
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.
What is a high level language?
What is it is designed to be easy for humans to read and write.
What is the process of analyzing the syntactic structure of the code?
What is parsing?
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.
Who wrote the song Thriller?
Robert Ludlum