Duvida
Nao entendi de onde veio "232" resultante da linha 9.Anonymous
python
05/31/2021 5:17 PM
388 B
54
Indexable
import urllib.request
page = urllib.request.urlopen("http://beans.itcarlow.ie/prices.html")
text = page.read().decode("utf8")
price = text.find(">$")
start_of_price = price + 2
end_of_price = price + 6
preco = text[start_of_price:end_of_price]
print(text)
print(price)
print(preco)Editor is loading...