T
The
asked

Expert
Sudip Bhandari answered
Hi Derek! To use the print() command in Python, you simply need to write print() followed by the content you want to display inside the parentheses.
For example, if you want to print a string, you can write:
print("Python")This will output:
PythonIf you want to print a number without quotation marks, you can do it like this:
print(5)This will simply output:
5So, just remember to use quotation marks for strings and none for numbers when using print()!
Hope this helps!
You will learn more about this in upcoming lessons. Let me know if you have any specific confusions.
Python
This question was asked as part of the Getting started with Python course.
Our Experts
Sanjeev PanditPrincipal Engineer
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Anuj ShresthaTech Lead
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