Nayan
asked

Expert
Abhay Jajodia answered
Good question! The punctuation you add to a string, like a full-stop (period) or other marks, doesn’t affect the code itself, but it will change the actual content of the string.
For example, if you write:
print("This is a string.")
the output will include the period, showing: This is a string. However, if you write:
print("This is a string")
then the output will be This is a string without the period. The choice of punctuation is up to you and what you want to convey in that string.
Let me know if you have more questions!
Python
This question was asked as part of the Getting started with Python course.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer