Here, p is a dictionary, w and c both are strings. When I try to write to the file it reports the error: Answer Indent correctly; your for statement should be inside the with block: Outside the with block, the file is closed.
Here, p is a dictionary, w and c both are strings. When I try to write to the file it reports the error: Answer Indent correctly; your for statement should be inside the with block: Outside the with block, the file is closed.