QUESTION IMAGE
Question
which line of code converts 2.56 into a string data type?
str(2.56)
makestring(2.56)
tostring(2.56)
string(2.56)
Brief Explanations
In many programming languages like Python, the str() function is used to convert a value into a string data - type. The other options like makestring(), tostring(), string() are not standard built - in functions for this purpose in common programming languages.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. str(2.56)