for s in stocks_list:
print s
how do I know what "position" s is in? So that I can do stocks_list[4] in the future?
for s in stocks_list:
print s
how do I know what "position" s is in? So that I can do stocks_list[4] in the future?
The position is called by stocks_list.index(s), for example:
for s in stocks_list:
print(stocks_list.index(s))