Python tracing, doesnt show the indexes
<p>Hey people i just got a quick question, for some of you it might be very simple but please help out.
lets say we got:</p>

<pre><code>--- modulename: test, funcname: &lt;module&gt;
test.py(1): nums = [3, 1, 2, 10]
test.py(3): where = 0
test.py(5): for number in range(1, len(nums)):
test.py(7):   if nums[number] &lt; nums[where]:
test.py(9):      where = number
test.py(5): for number in range(1, len(nums)):
test.py(7):   if nums[number] &lt; nums[where]:
test.py(5): for number in range(1, len(nums)):
test.py(7):   if nums[number] &lt; nums[where]:
test.py(5): for number in range(1, len(nums)):
test.py(11): answer = nums[where]
 --- modulename: trace, funcname: _unsettrace
trace.py(80):         sys.settrace(None)}
</code></pre>

<p>So as you can see it doesn't show me the output i need. I need to see the numbers that its putting inside of each stage looping. Is there a way to get it done?</p>

<p>You need to format it accordingly to see what goes inside at each step</p>

<pre><code>nums = [33, 21, 4, 8]

where = 0

for number in range(1, len(nums)):
   print number
   if nums[number] &lt; nums[where]:
       print where
       where = number

answer = nums[where]
print answer
</code></pre>

python tracing