These symbols are used to perform the four basic math operations in Python.
What is +, -, * and /?
This command allows the user to answer questions by providing text to the program.
What is input?
True or False: Variable names should start with numbers and can contain special characters
What is
False?
Eclipse is an IDE which stands for…
What is Integrated Development Environment?
What is Math?
These two commands allow you to recreate the quadratic formula
What is math.sqrt() and math.pow() or **?
If the underlined value is inputted by the user to a variable called word, provide the code that would output this sentence.
Bowser is the best!
print (word, “is the best!”)
print (“{} is the best!”.format(word)
These are the four elements of a properly documented program header in code.
What are
#name
#date
#program name
#purpose
This is what you write when you create a program. (two words)
What is source code?
Ms Prince's son.
Who is Callum?
This command allows you to ensure that answers are properly rounded to the highest whole number.
What is math.ceil?
Or
What is round(variable, 0)?
To print labelled output with two variables.
a= “Ms. Buzanis”
b= “Mr. Cardinale”
Ms. Buzanis and Mr. Cardinale are teaching grade 9 extended math this year
What is
print (“{}, and {} are teaching grade 11 CS this year!”).format(a,b)
These variable types share similar commands and both work for storage.
What are strings and lists?
This is the part of the IDE that runs through your code line by line.
What is the compiler?
The house that Ms Prince is in.
What is Edith Nainby?
These two lines of code will allow you to generate a random number from
2 to 15.
What is the following:
import random
random.randint(2,15)
This command would be used to print the exact statement:
“To be or not to be” by Hamlet
What is
print ("\"To be or not to be\" by Hamlet")
True or False: Python3 will calculate this statement as 0.5 not 0.
print (½)
What is True?
it would be 0 in Python2 and 0.5 in Python3.
This is the part of the IDE that takes the 0s and 1s and turns them into a running program.
What is the virtual machine?
The University Ms Prince attended?
This command allows you to ensure that all answers are set to two decimal places.
What is the format command?
a = format(a, ‘.2f’)
This command allows me to convert an integer that is inputted to a floating point in one line.
What is
val = float(input(b))?
This variable type is a list of items that cannot be changed enclosed by regular brackets.
What are tuples?
This is what we call the orange box that includes all of the parts of the software the make the program become runnable.
What is the interpreter?
The competitive sport Ms Prince did for 17 years.