title: How to choose a random input from 7 given input?
body: <p>I'm creating a lottery hack machine which gets the winning numbers of the last 7 days and tries to select a winner from the the 7 and shuffle the numbers of that selection and print the result. All this occurs at random. </p>
  
  <pre><code>#lottery hack
  
  print "WELCOME TO LOTTERY HACK MACHINE!!!\n"
  today = int(raw_input( "Please enter today's date: " ))
  if today&lt;=31:
      print "Please enter the 4-digit prize winning lottery number for the last 7 days"
      y = raw_input( "Enter 7 numbers separated by commas: " )
      input_list = y.split(',')
      numbers = [float(x.strip()) for x in input_list]
  
  elif today&gt;31:
      print "A month has only 31 days ;P"
  </code></pre>