In this way, I want to write a code that randomly picks up 14 numbers in the list A and adds them over and over again, but I'm not sure if this code is right 'int' object has no attribute 'append' I thought it would be introduced if I put on the int, but I don't think that's it. I ask for your help mepython
There seems to be a lack of study on basic grammar.
The append command is a command used for a list object, but you are using it for an int object.
And why is the object declared as the first list designated as an int object in the middle?
The last object you want to output is also being reset per loop. If you're going to use this, it won't be a problem, but... If you plan to continue using it, please study basic grammar.
© 2022 pinfo. All rights reserved.