Q. How to write Unicode data to a file?
β
Correct Answer: (B)
Use encoding parameter in open()
Explanation: Specify encoding like utf-8 in open() to write Unicode text.