Essentials
Data types
Operations
Functions
Miscellaneous
100

Mention three types of if statements

Single, alternative, chained, and nested
100

Built-in function to change a text to a number

int

float

100

Two ways how to write the increment of a variable by 3 units

variable += 3 or variable = variable +3

100

Built-in function to request a prompt from a user over the terminal

input()

100

What are he two types of loops

While and For

200

Differences between assigning a value and comparing a value by its equality

 = vs ==

200

Name six data types in Python

int, str, dict, float, list, dict, tuple

200

Name a definite loop

for loop

200

Code statement that differentiates a fruitful functions from a void function

return 

200

The built-in function to change "43.23" to 42.23

float()

300

The essential elements of a boolean expression

logical comparison or TRUE/FALSE

300

Two mutable sequence data structures

list

dict 

300

In PEMDAS, what does 'E' refer to?

Exponentiation 

300

Built-in function that returns the variable type of a variable

type()

300

Code statement to get out from a loop

break

400
The essential elements for reading a file

Location

File object 

Algorithm

400

You get this type of error from trying to compute a text with a number (very often when you use input())

Logic error
400

The index needed for reversing a word

[::-1]

400

Function from str to divide a text by a character or chain of characters

split()

400

To what two types of functions do the function print() belong?

built-in and void

500

The essential elements necessary to define a function

def

function name

colon

attributes are optional

500

The following is an example of what data type {1:2,3:4,5:6}

dict()

500

What code will you execute to get the last name from the following text, "James Gaskin"?

"James Gaskin".split(" ")[-1]

"James Gaskin".split()[-1]

500

List five built-in functions and explain their functionality.

print(), type(), dir(), input(), int() (any type conversion)

500

Function to get out of the Python interpreter

exit()