for line in f: gives the text "Asha:72\n" for the first line. What does line.strip().split(":") give?
Log in to join the discussion.
Loading…