Vidyalelo
Python · Q6

MCQs for Python Strings: Exam

Programming · Python · question 6

Q6

What is the purpose of the str() function in Python?

A.
Converts an object to a string
Answer
B.
Converts a string to an object
C.
Returns the string length
D.
Splits a string

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board