Can't use "3.14" instead of str(3.14) ? To turn that number into a string?


#1




Replace this line with your code.


#2

you could. but this lesson is about how to convert an integer to a string.

lets say i fetch a integer from the internet/database, and i have no idea what the value is and i need to convert it to a string, i can use str(), now you know what the number is, but that doesn't always work that way

we can't teach everything it once, this exercise teaches you how to convert to string, which can be really useful :slight_smile:


#3

Thanks for your respond that made it bit clear to me :smiley:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.