Oct-28-2021, 03:15 PM
When your key is an index, take that as a sign that you want a list. I don't think dictionaries are a good choice for mast, gv, gvn or dc. Turning these into lists eliminates the need for count and fncount.
You don't need to use global unless you want to assign a value to a global variable. In sutcheck() you declare gv and gvn to be global, but you never assign them. You modify their contents (they are dictionaries that should be lists), but gv and gvn always reference the dictionaries created at the start of the program.
check9() should return True or False, not 'true' or 'false'. The end of check9() should be:
You don't need to use global unless you want to assign a value to a global variable. In sutcheck() you declare gv and gvn to be global, but you never assign them. You modify their contents (they are dictionaries that should be lists), but gv and gvn always reference the dictionaries created at the start of the program.
check9() should return True or False, not 'true' or 'false'. The end of check9() should be:
return totalcount == 3