Q. What will happen if you write a list directly to a file using write()?
β
Correct Answer: (B)
It raises TypeError
Explanation: write() only accepts strings, not lists or other data types.