title: How to do this first step in my programming project in python 2.7
body: <p>this is the first steps:
   Define an instance method named "roll" that takes one argument (besides self).  Give the parameter an appropriate name to hold the list of indexes we need to roll.
  Create a for loop that will traverse through the parameter list.
  Inside the loop, change the dice for each index value in the list to a random number from 1 to 6.  Remember that to refer to the instance variable you must precede it with self and a dot.</p>
  
  <p>this is what i have so far </p>
  
  <pre><code>from random import randint
  
  class Dice(object):
       def __init__(self):
          self.dice = []
          x = 0
          while x &lt; 5:
              self.dice.append(str(randint(1,6)))
              x += 1
  
  hand = Dice() 
  print hand.dice 
  </code></pre>