Questions And Answers

More Tutorials

Python Print() Statement

print() is a function in Python that allows us to display whatever is written inside it. In case an operation is supplied to print, the value of the expression after the evaluation is printed in the terminal. For example,

# print statement for printing strings
print("Python is a programming language")

# Print statement with a literal

#This will print "Python is a programming language" and 88 on the screen respectively!


end argument allows us to put something at the end of the line after it is printed. In simple words, it allows us to continue the line with " " or ',' or anything we want to put inside these quotes of the end.
It simply joins two different print statements using some string or even by space. Example:

# print statement for printing strings
print("Python is a programming language", end="**")

# Print statement with a literal



Python is a programming language**88


In this page (written and validated by ) you learned about Python Print Statement . What's Next? If you are interested in completing Python tutorial, your next topic will be learning about: Python Escape Sequences.

Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue:

Share On:

Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using, you agree to have read and accepted our terms of use, cookies and privacy policy.