Use a loop to repeatedly draw tickets num times or until a player wins the Mega Millions payout with six matches. After each drawing without a jackpot winner, increase the prize by $ 1,500,000. After all drawings are complete, print the number of drawings and biggest winner (see sample output) In case of a tie, it does not matter which player is reported. Consider adding instance variables for the jackpot amount and a boolean variable if a player wins the mega value. Return the largest prize value. Beware, python objects are assigned as references. Without going into too many details, you should not track the biggest winner as a lottery_ticket object. Instead, track the String representation of the object by calling the () function.



Answer :

Other Questions