Firstly, it should be list
and not dict
. Check: In Python, when to use a Dictionary, List or Set?
In order to get the list of values, you may use list comprehension as:
>>> import random
>>> row_count = 10
>>> my_list = [random.random() for i in range(row_count)]
# Value of 'my_list':
# [0.9158936600374181, 0.8998648755500501, 0.07002867165493243, 0.6694284854833131, 0.4903966580363698, 0.9462143737260301, 0.8014661448602305, 0.47964245438139297, 0.42326131297319725, 0.77540761767324]
In order to fetch 5th item (i.e. 4th index):
>>> my_list[4]
0.4903966580363698