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())