6. Only when it is less than 4.74¶

11
from urllib.request import urlopen
LOYALTY_PRICES_URL = "https://api.allorigins.win/raw?url=http://beans.itcarlow.ie/prices-loyalty.html"
page = urlopen(LOYALTY_PRICES_URL)
content = page.read()
position = content.find(">$")
start = position + 2
end = start + 4
if content[start:end] < 4.74:
print(content[start:end])
Activity: 6.1 ActiveCode (ac_l33_6_en)
You have attempted 1 of 2 activities on this page