From Dev.to
When a lottery ticket is worth more than it costs: pricing a roll-down in 20 lines of Python
Most lottery arithmetic is depressing. A 6-of-46 game with a $2 ticket, $4,000 for five numbers, $150 for four, $5 for three and a free ticket for two returns about 74 cents on the dollar before you e...
