Why int and then float i wrote it cuz i saw it in a solution code but i don’t understand. I also don’t understand why sometimes we use
cocoa_data= soup.select(".CocoaPercent")
but other times
ratings_all = soup.find_all(attrs={‘class’:‘Rating’})
Are they used the same way or does it depend on the situation?