(Print) Use this randomly generated list as your call list when playing the game. There is no need to say the BINGO column name. Place some kind of mark (like an X, a checkmark, a dot, tally mark, etc) on each cell as you announce it, to keep track. You can also cut out each item, place them in a bag and pull words from the bag.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
try/except block – For handling errors.
return – Exits a function and optionally returns a value.
range() – E.g., range(10) to generate sequences.
List creation – E.g., my_list = [1, 2, 3]
if – The basic conditional statement.
Logical operators – Such as and, or, not.
import – Importing modules, e.g., import math
for loop – For example: for i in range(5):
break – Exits a loop early.
Arithmetic operators – Such as +, -, *, /.
from ... import ... – E.g., from math import pi
print("Hello, world!") – The classic output command.
len() – To get the length of a list, string, etc.
lambda – Anonymous functions, e.g., lambda x: x * 2
type() – To check the data type, e.g., type(x)
def – Used to define a function.
List comprehension – E.g., [x for x in range(10)]
Variable assignment – E.g., x = 10
while loop – Repeats as long as a condition is true.
Tuple creation – E.g., my_tuple = (1, 2, 3)
continue – Skips to the next iteration of a loop.
Set creation – E.g., my_set = {1, 2, 3}
Docstring – A string literal for documentation, e.g.
as – For aliasing modules, e.g., import numpy as np