import lxml
import requests
from bs4 import BeautifulSoup as BS
url_usd ="https://www.banki.ru/products/currency/usd/"
responce = requests.get(url_usd)
zap = BS(responce.text, "lxml")
usd = zap.find("div", class_="currency-table__large-text")
usd = BS(usd.text, "lxml").text.strip()
url_euro = "https://www.banki.ru/products/currency/eur/"
responce_e = requests.get(url_euro)
zap = BS(responce_e.text, "lxml")
euro = zap.find("div", class_="currency-table__large-text")
euro= BS(euro.text, "lxml").text.strip()
rub = input('Введите сумму в рублях: ')
kurs = float(usd)/float(rub)
print (kurs)
Выводит :
ValueError: could not convert string to float: '70,52' [Program finished]
Помогите пожалуйста