Operators
Variables
Flow Control
General Python
Strings
100

What is the output?

print (3/2)

1.5

100

Which data type stores letters, numbers, and symbols.

What is a string?

100
This often used statement checks the validity of a statement before creating a branch.
What is an 'if' statement?
100
To comment a line in Python, you use this/these character(s).
What is a pound sign (#) ?
100

This operator "glues" two strings together.

What is the concatenation (+) operator?

200

Fix the error:

print ("3" + 2)

print ("3" + str(2))
200

Which data type stores decimal numbers.

What is a float?

200
This flow control statement loops through a set of statements if a test statement continues to evaluate to True.
What is a for or while loop?
200
This commonly used Python data structure contains a collection of items referenced by a numeric index.
What is a list?
200
x = "python"

print (x[4:])

on

300

What is the output?

print (12 % 5)

2

300

x = True

print (type(x))

<class 'bool'>

300

What are values of n?

for n in range(1,5):

1, 2, 3, 4

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

x = "python"

print (x[:3])

pyt

400

What is the output?

print (1 % 3)

1

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

What are the values of n?

for n in range (3, 1, -1)

3, 2

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?
400

x = "python"

print (x[6])

exception (Index Error)

500

What is the output?

print (3 + 5 ** 2 - 20)

8

500
To determine the variable type of a variable, you would use this function.
What is type()?
500

What are the values of n?

for n in range (1, 5, 2):

1, 3

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

x = "python"

print(x[6:7])

blank line