4. Discounts for loyal customers¶

4.1. Loyalty program¶
7
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)
text = page.read()
print(text[234:238])
Activity: 4.1.1 ActiveCode (ac_l33_4_en)
It didn’t work! the string “Bean” appeared instead of the price. Why could it be?
You have attempted 1 of 2 activities on this page