I am not clear why second output doesnt give me any results although the same line gives me results after the for loop. You can comment out one by one and check the output.
Thanks in advance !
three_rows = ["Albuquerque,749", "Anaheim,371", "Anchorage,828"]
#print(three_rows) #1st output
#three_rows[0] #2nd output -- no response!
final_list = []
for row in three_rows:
split_list = row.split(',')
final_list.append(split_list)
#print(three_rows) #3rd output -- prints the whole list(expected)
#three_rows[1] #4th output -- prints the 2nd element(expected)
#print(final_list) #5th output -- prints the whole list(expected)
#final_list[0] #6th output -- prints the first element(expected)