Q. Which of the following is used for string formatting?

  • (A) `%` operator
  • (B) format()
  • (C) f-strings
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
Explanation: All these methods are used for string formatting in Python.
Explanation by: Mr. Dubey
All these methods are used for string formatting in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate