Feb-22-2019, 02:34 AM
A few things: One, list is a bad name for a list. It's the Python function for creating a list, and by using the name elsewhere you are cutting off code that might mess up something else. Two,
Typing all that up made me figure out the problem: you want the second for loop to be over output_list, not list.
Array == line[:4]
is already a bool, you don't need to convert it to one. Three, bool is a subclass of int, to convert it to 1 or 0 you just need int(found).Typing all that up made me figure out the problem: you want the second for loop to be over output_list, not list.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures