I have got this HTML element in my Python (3.6.3) code (as Selenium webelement of course):
Try the following code:
span_element = driver.find_element_by_css_selector(".ocenaCzastkowa.masterTooltip") span_element.text # This will return "5".
PS: Also you can use span_element.get_attribute("value").
span_element.get_attribute("value")
Hope it helps you!