if inacross:
if line != "":
parts = line.split()
- question_number = int(parts[0])
+ question_number = int(parts[0].split(",")[0])
clue = " ".join(parts[1:])
crossword["across"][int(question_number)] = \
clue.encode(code)
if indown:
if line != "":
parts = line.split()
- question_number = int(parts[0])
+ question_number = int(parts[0].split(",")[0])
clue = " ".join(parts[1:])
crossword["down"][int(question_number)] = clue.encode(code)
num_cols = len(crossword["grid"][0])