Please leave the following link in the post so we can find the unit module, else replace it with a link to the exact lesson:
Hi, I’ve a question and I hope someone can reply to it.
the exercise explains that str() converts non-strings into strings, for example if I write <print “There” + “are” + 2 + “toys”> the console gets me an error so i have to write: <print “There” + “are” + str(2) + “toys”>; Now I’ve converted 2(=non-string) into a string and the console prints the phrase correctly, but I can also write the number 2 into two quotation marks and it’s more simple than the first one, right? or not?
thanks to help me!