DEV Community

Cover image for Print() built in function in python
SaranJoel
SaranJoel

Posted on

Print() built in function in python

print() is a built in function in python
we use print() function to print the object in it
which is given in double Quotation
which will be like:
Print("object")
or we can do with the old classic word
ie. print("Hello World!")
Alt Text

We can only print ,if the object is in b/w the in double Quotation.
if the object is not in b/w the double Quotation it would give an error.
Alt Text
the error would be syntax error
why is it giving an error?
should it just print the object as it before?
what is the problem in printing with out double Quotation?

The problem in printing the object is,because the computer think the 'object' is also an 'built in function' and after thinking that it searches in the built in functions,
as the object will not be present in the built in functions ,it will give an error .
So,we have to specify the object in double Quotation.

Top comments (0)