Typeerror: 'bool' object is not iterable [SOLVED] - Itsourcecode.com
Here are the following solutions that will help you to fix this type error: 1: Assign an iterable object to the variable Rather than assigning a boolean value to the variable. You can assign an iterable objec t such as a list, string, or tuple. my_list = [10, 20, 30, 40, 50] for sample in my_list: print(sample)