import urllib.request

page = urllib.request.urlopen("http://beans-r-us.appspot.com/prices.html")
text = page.read().decode("utf8")


priceSearch = text.find(">$")
priceStart = priceSearch + 2
priceEnd = priceStart + 4
price = text[priceStart:priceEnd]
print(price)

import urllib.request

page = urllib.request.urlopen("http://beans-r-us.appspot.com/prices.html")
text = page.read().decode("utf8")

# find the position of the price tag 
priceSearch = text.find(">$")
# after price tag, add offset 2
priceStart = priceSearch + 2
# price has 4 character 
priceEnd = priceStart + 4
price = text[priceStart:priceEnd]
print(price)

add comment for every statement