print('''powerball lotteryby al sweigart al@inventwithpython com each powerball lottery ticket costs $ the jackpot for this game is $ billionit doesn' matter what the jackpot isthough because the odds are in , , so you won' win this simulation gives you the thrill of playing without wasting money ''' let the player enter the first five numbers to while true print('enter different numbers from to with spaces between' print('each number (for example )' response input('' check that the player entered things numbers response split( if len(numbers! print('please enter numbersseparated by spaces ' continue convert the strings into integers try for in range( ) numbers[iint(numbers[ ] except valueerror print('please enter numberslike or ' continue check that the numbers are between and for in range( ) if not ( <numbers[ < ) print('the numbers must all be between and ' continue check that the numbers are unique (create set from number to remove duplicates if len(set(numbers)! print('you must enter different numbers ' continue break let the player select the powerball to while true print('enter the powerball number from to ' response input('' convert the strings into integers try powerball int(response except valueerror print('please enter numberlike or 'powerball lottery