'how can i segregate the values into range based on accuracies

x = [
    ("Sports", 100),
    ("Autos Vehicles | Motor Vehicles | Sports Cars", 92),
    ("Food Drink | Beverages | Sports Drinks", 85),
    ("Games | Computer Video Games | Sports Games", 70),
    ("News | Sports News", 65),
    ("Sports | Animal Sports", 62),
    ("Sports | Animal Sports | Equestrian", 55),
]

I want to segregate this data into range specified by mean of the accuracies in python



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source