Which of the following is not a valid mode to open a file?
rw
Reason — 'rw' is not a valid mode to open file in Python.