Jun-30-2021, 05:13 PM
the error is here.
split returns a list, which is one object. You're trying to read two items.
(key, val) = line.split()
split returns a list, which is one object. You're trying to read two items.