194k views
1 vote
Complete the code to convert a float to a string. Answer = 5. 3 stranswer = (answer).

User MarcGV
by
5.0k points

1 Answer

4 votes

Answer:

str

Step-by-step explanation:

To convert a float to a string, the code would look like this:

answer = 5.3

strAnswer = str(answer)

User Pamma
by
5.5k points