-3
In python, when printing a certain variable (after a loop) I get as a result:
[3]
[7]
[13]
[4]
values are within a variable a . Hence when I make list.append(a) and print, I have: [3]
[3,7]
[3,7,13]
[3,7,13,4]
And what I need is a list of the kind:
list= [3,7,13,4]
how can I do this?
doesn’t work like this because when printing it leaves wrong
– Lucas Teodoro
How’s the current code? Update the question about what code looks like you want.
– Breno