Predict

Match or Search?

Three functions, one text. Remember where each one is allowed to look.

import re

text = "Isle 42 has 7 lanterns"
a = re.match(r"\d+", text)
b = re.search(r"\d+", text)
c = re.findall(r"\d+", text)
print(a, b.group(), c)

What does this program print?