Nov-17-2016, 08:52 PM
I don't have the sort of patience required to read through all that code, and because the variable is just a single character I can't search the page. So all I can offer is a suggestion: don't set d to be an int. Instead of "d = some_other_variable", try "d = [some_other_variable]".