Q. Which function is used to convert a number into a string in Python?

  • (A) toString()
  • (B) str()
  • (C) string()
  • (D) chr()
πŸ’¬ Discuss
βœ… Correct Answer: (B) str()
Explanation: The `str()` function converts numbers and other data types into strings.
Explanation by: Rati Dubey
The `str()` function converts numbers and other data types into strings.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
54
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
99%
Success Rate