I realized that my first answer wasn't quite right; in that example, you're not going to get integers returned for each item in the listvariable list, but incidents of the genRAN function. To see what I'm talking about, try running:
#!/usr/bin/python
import random
varROLLS = raw_input("How many rolls? ")
def genRAN():
a = random.randint(1,6)
print a
b = 0
listvariable = []
while b < int(varROLLS):
b = b + 1
genRAN()
listvariable.append(genRAN)
print listvariable[0]
You'll notice the program runs just fine until it hits the last command, which then prints
<function genRAN at 0xb7bbcc6c>
Sorry about the confusion. I just recently started with python, myself. To refer to the list, you'd have to rewrite things a bit like this:
#!/usr/bin/python
import random
varTIMES = raw_input("How many rolls? ")
def genRAN():
a = random.randint(1,6)
print a
listvariable.append(a)
b = 0
listvariable = []
while b < int(varTIMES):
b = b + 1
genRAN()
print "...What are the first and last rolls?..."
print listvariable[0]
print listvariable[-1]
So, by changing things up a bit, you'll be able to refer to any single integer in listvariable without any problems.
Hope this helps, and if anyone sees anything that should be done differently, let me know.