statistics hints

Weighted choice in python