Operations
Keywords
Output
Data
Mixed
100

"/" operator is used for...

division.

100
The "if" keyword is used for...

starting an if statement/checking if a condition is true.

100

x = 5

y = 10

print(x * y)

output: 50

100

A number without decimals.

An Integer.

100

on = True

off = not on

if off:

  print("On")

else:

  print("Off")

output: Off

200

"=" operator is used for...

assigning a value.

200
The "and" keyword is used for...

checking if multiple conditions are true.

200

num1 = 305

num2 = 26

num1 = num1 + num2

print(num2)

output: 26

200

A sequence of characters (text)

A String.

200

A function that is used for getting the length of a list...

len()

300

"==" operator is used for...

comparing two values.

300

The "or" keyword is used for...

checking if one of two or more conditions are true.

300

name = "Peter"

age = 30

if name == "Peter":

  age = age + 20

print(age)

output: 50

300

A number with decimals...

A Float.
300

A function from the "random" library that picks a random entry from a list or array

random.choice()

400

"**" operator is used for...

calculate the power of a number.

400

The "not" keyword is used for...

reversing a value, typically a boolean.

400
age = 0


if age:

  print(age)

else:

  print(age + 6)

output: 6

400

A value that can be true/false...

A Boolean.

400

The "def" keyword is used for...

defining a function.

500
"%" operator is used for...

get the remainder of a division.

500

The "while" keyword is used for...

starting a while loop. Double points: A while loop is...

500

points = 4506

points -= 6

print("points")

output: points

500

A collection of data represented by a name...

A List.

500

A function used to sort a list...

sorted()