Oct-17-2020, 12:24 AM
Here is a snippet of code and what it produces. I don't understand what is going on.
$ python processing.py
False
False
True
False
False
False
def complete_form(): horses_names = [] for i, var in enumerate(scratched): scratched_list.append(var.get()) for a in range(len(scratched_list)): if scratched_list[a] == 'True': print(horses_name[a]) else: print(scratched_list[a])Here is what it prints out. As you can see there is one condition that is True, but the code doesn't seem to recognize it. I don't know why. Where scratched_list[a] == 'True' horses name should appear, but I get 'True' instead.
$ python processing.py
False
False
True
False
False
False