There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
You can also find further discussion and get answers to your questions over in Language Help.
Agree with a comment or answer? Like () to up-vote the contribution!
I think it would have more to do with style, as you are debugging some one else’s code that using their style to remain consistent is key. You’ll notice that it does print correctly.
It is a viable solution except Codecademy is very specific and narrow in the answer they want. A lot of these problems may have multiple solutions but they will mark them wrong if it’s not the exact one they’re looking for.
When you pass arguments of any type to print it effectively calls them with the str() function before outputting them as text. What you’re doing with the comma , is passing multiple arguments to the print function. Since each function is converted to text of some form before printing this is fine. https://docs.python.org/3/library/functions.html#print
The + for the string type is concatenation that joins two strings into a new string. In that case the concatenation is performed first and then you’re passing a singular string object to print which is fine too.
Worth knowing both options exist and the differences between them.