πŸ“Š Python
Q. How to write Unicode data to a file?
  • (A) Use binary mode
  • (B) Use encoding parameter in open()
  • (C) Write bytes directly
  • (D) Encode before writing
πŸ’¬ Discuss
βœ… Correct Answer: (B) Use encoding parameter in open()

Explanation: Specify encoding like utf-8 in open() to write Unicode text.

Explanation by: Mr. Dubey
Specify encoding like utf-8 in open() to write Unicode text.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate