G+_Tadeusz Cantwell Posted April 17, 2014 Share Posted April 17, 2014 A small lottery program to practice appending and popping. http://pastebin.com/FwdfHHkp Link to comment Share on other sites More sharing options...
G+_L I Posted April 17, 2014 Share Posted April 17, 2014 could probably combine the inputting and appending into: lottery_list = [] for x in range(5): lottery_list.append(raw_input ("Enter the #" + str(x+1) + " lottery number: ")) Link to comment Share on other sites More sharing options...
G+_Tadeusz Cantwell Posted April 17, 2014 Author Share Posted April 17, 2014 Thanks, I've updated the file. That saves space and time future time typing. Link to comment Share on other sites More sharing options...
Recommended Posts