title: How do I make a simple dice game using python?
body: <p>I'm trying to make a really simple dice game that :</p>
  
  <ul>
  <li>rolls two "dice" and stores their values in a list.</li>
  </ul>
  
  <p>I need it to:</p>
  
  <ul>
  <li>return the values, </li>
  <li>point out where there are doubles, </li>
  <li>How many times doubles were rolled? and </li>
  <li>What roll they occurred on?</li>
  </ul>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>def dice():
      import random
      list1 = []
  
      for i in range (2):
          x = random.randint(1,6)
          list1.append(x)
  
      if list1[0] == list1[1]:
          print list1, "&lt;-- DOUBLES"
          return
      else:
          return list1
  
  counter = 0
  for i in range (10):
      counter = counter + 1
      print "Roll", counter, "was", dice()
  
  print "Doubles were rolled", ### times: on roll x, y, and z
  </code></pre>
  
  <p>Any suggestions?</p>