TypeError: ‘list’ object cannot be interpreted as an integer

Error messages usually mean precisely what they say. So they must be read very carefully. When you do that, you’ll see that this one is not actually complaining, as you seem to have assumed, about what sort of object your list contains, but rather about what sort of object it is. It’s not saying it wants your list to … Read more

TypeError: not all arguments converted during string formatting python

ou’re mixing different format functions. The old-style % formatting uses % codes for formatting: The new-style {} formatting uses {} codes and the .format method Note that with old-style formatting, you have to specify multiple arguments using a tuple: In your case, since you’re using {} format specifiers, use .format: