R

Rati Dubey • 8.55K Points
Tutor III

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

  • (A) toString()
  • (B) str()
  • (C) string()
  • (D) chr()
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Python

Explanation by: Rati Dubey
The `str()` function converts numbers and other data types into strings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics