I'm printing a simple line program in Python. But when I add a period after a comma in the print statement, I keep seeing a space in between the end of the result and the period. How can I remove this space with a simple print statement?
Code:
print("The sum of 1-9 is",1+2+3+4+5+6+7+8+9,".")
Result:
The sum of 1-9 is 45 .
Desired result:
The sum of 1-9 is 45.