Python – TypeError: ‘int’ object is not iterable
Your problem is with this line: It tries to take cow[n], which returns an integer, and make it a list. This doesn’t work, as demonstrated below: Perhaps you meant to put cow[n] inside a list: See a demonstration below: Also, I wanted to address two things: Your while-statement is missing a : at the end. It is considered very dangerous to … Read more