Basic Math
input and output
if statements
General Python
100

The result of int(5.7)

What is 5?

100

The function that prints a statement to the screen and also accepts a user value. 

What is a input()?

100

The logical operator that requires BOTH operands to be True in order to evaluate to True.

What is 'and'?

100
To comment a line in Python, you use this/these character(s).
What is a pound sign (#) ?
200

The result of 7 - 3*2

What is 1?

200
This variable type stores decimal numbers.
What is a float?
200
It is equivalent to !(x>=5).

What is x<5?

200
This commonly used Python data structure contains a collection of items referenced by a numeric index.
What is a list?
300

The result of 9 // 5

What is 1?

300

The error in the following code: 

grade1 =input("please enter quiz 1 score")

grade2 =input("please enter quiz 2 score")

average = grade1+grade2

print(average)

What is lack of float()?

300

The following code has an error. Identify the error.

x=6

if x=6: 

     print(" hello")

else

     print("goodbye")

What is = instead of ==?

300
In Python, this is the smallest element of a program that can be executed.
What is a statement?
400

The result of (12*3)/(9**0.5)

What is 12 ?

400
Data stored as a string is surrounded by these.
What are quotes?
400

The output of the following code:
x=2

y=6

if x+y<=8:

     print("yippee")

else:

     print("boo")

What is "yippee"?

400
Python will warn on a logic error, but it will warn (and possibly error) on this type of error.
What is a syntax error?
500

The result of 7%9

What is 7?

500

The output of the following code: 

schoolName = loa

print(“You ”, end=””)

print(“are a student at “, schoolName)

What is "You are a student at loa"?

500

The output of the following code: 

x = 10

if x<=10 and x%2 ==0:

     print("yes")

else:

     print("no")

What is "yes"?

500
This built-in Python function returns the length of many objects, including Lists.
What is len()?
M
e
n
u