title: I get "undefined variable" from pydev with the code below. Can someone please tell me what's wrong
body: <p>This is the code I've written. I'm just a beginner at python and this is part of my first practice. So, the problem is that I'm getting this "undefined variable" error for dieFace1 and dieFace2 in the last line of code here.</p>
  
  <pre><code>def rollDie():
      die1 = [1,2,3,4,5,6] 
      die2 = [1,2,3,4,5,6]
      dieFace1 = int(random.shuffle(die1))
      dieFace2 = int(random.shuffle(die2))
      dieFaceTotal = dieFace1+dieFace2
      while (userIn &gt; pot or userIn &lt; 0): 
         userIn = (raw_input(" Invalid bet, please enter the right bet amount"))
  
      print "You rolled a ", dieFace1, "and ", dieFace2
  </code></pre>