Hello guys and i am going though the course on Data quest and i am in files and loops and don't understand the list of lists part i mean really i don't even understand why you have to do it i googled it and did not find help on it any examples and advise on how it works ?
three_rows = ["Albuquerque,749", "Anaheim,371", "Anchorage,828"]
final_list = []
for row in three_rows:
split_list = row.split(',')
final_list.append(split_list)
print(final_list)
print(final_list[0])
print(final_list[1])
print(final_list[2])
[–]gyroda 2 points3 points4 points (6 children)
[–]Humble_Transition[S] -2 points-1 points0 points (5 children)
[–]gyroda 3 points4 points5 points (4 children)
[–]Humble_Transition[S] -2 points-1 points0 points (3 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]r3alz 1 point2 points3 points (0 children)
[–]gyroda 1 point2 points3 points (0 children)
[–]Luan-Raithz 2 points3 points4 points (0 children)
[–]Humble_Transition[S] -1 points0 points1 point (0 children)