Python String Syntax

In the review the last line of the solution is:

print(“I got “+ str(point_total)+” points!”)

What tripped me up is the space between got and the apostrophes and again the space between the apostrophes and points. Obviously I’m just going to have to remember to do that in the future but is there a logical reason for these spaces?

well, lets say point_total is 5, without the spaces you would get:

i got5points!

which isn’t very readable. Not very nice for people using your application.

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

skill_completed = “Python Synthax”

This is what i wrote for the first part of the exercise #14. It says it is wrong

You set skill_completed to: Python Synthax when it should be "Python Syntax" .

What did i do wrong.?

P.S
This is my second time doing this last exercise. The first time i reached the the last part but couldn’t solve the last part of it. So i re-took the test and now im stuck in the first one.

the string needs to be an exact match, check it for typos