For loop with increasing variable
<p>I am writing a for loop to quickly obtain user data for a set. To keep the data useful, each has to have it's own variable it saves to. So far, I have:</p>

<pre><code>hey = ['11', '12', '13', '14']
x = 0
for i in hey:
    x += 1
    showtimesx = raw_input('NOG &gt;')
    print showtimesx

print ""   
print "Showtime at 11: " + showtimesx
print "Showtime at 12: " + showtimesx
print "Showtime at 13: " + showtimesx
print "Showtime at 14: " + showtimesx
</code></pre>

<p>The last prints are just to check that the showtimesx have increased in value. However, every time I run it, all of them just end up equaling the last inputted value. </p>

<p>I have attempted to move the x += 1 line, have the x = 0 line inside the loop and a series of other things, but none of them work.</p>

<p>How can I fix that?</p>

<p>You want to use lists:</p>

<pre><code>hey = ['11', '12', '13', '14']
showtimes = [raw_input('NOG &gt;') for i in hey]

print ""   
print "Showtime at 11: " + showtimes[0]
print "Showtime at 12: " + showtimes[1]
print "Showtime at 13: " + showtimes[2]
print "Showtime at 14: " + showtimes[3]
</code></pre>

python