[Solved] putting float numbers in lists [closed]


Just create lists:

somelist = [p1, p2]

You probably want to append those to another data structure initialized outside of your loop:

somelargerlist = []

for presumed_loop_variable in presumed_loop_not_shown:
    p1 = ...
    p2 = ...
    somelist = [p1, p2]
    somelargerlist.append(somelist)

17

solved putting float numbers in lists [closed]