Codington
0 of 6 problems solved • 0%

Exercise prompt

Predict the Notice Board

A notice board is written twice and then opened for reading. Inspect the mode used for each write.

Predict the output

What text does the final print display?

with open("board.txt", "w", encoding="utf-8") as board: board.write("North") with open("board.txt", "w", encoding="utf-8") as board: board.write("Bus") with open("board.txt", encoding="utf-8") as board: print(board.read())
What will this code print?