AttributeError: 'int' object has no attribute 'insert'
stackoverflow.com › questions › 11641547Jul 25, 2012 · 'int' object has no attribute 'insert' the type int does not have an insert method. Update re comment above: You can add/remove/insert items to the list, but you can't add/remove/insert to an integer. See this brief tutorial/reference on lists. So for instance to insert an item into a list you'd use this methods/approach: list.insert(index, obj) so in your case. frames.insert(index, .. ) not
How to deal with this in python AttributeError: 'int' object ...
www.programshelp.com › help › pythonHow to deal with this in python AttributeError: 'int' object has no attribute 'counter'. num1 = random.randint (0,12) num2 = random.randint (0,12) num = print (num1,"x",num2) answer = int (input ("what are theses 2 numbers x together ")) answer.counter while num1 * num2 == answer or counter > 5 : # num1 = random.randint (0,12) num2 = random.randint (0,12) print ("well done you got it correct ") counter +1 print (counter) num = print (num1,"x",num2) answer = int (input ("what are theses ...