Python Print Function

What is print() function?

Print is the built-in function of python. Which allow to print a given message and any other value. for now you don't need to think more about functions as we will discuss about it later.

Write your first python program.

Open Vs code and create a file with ".py" extension ( 'file_name.py' ). Now, Write your first code or program in the python file,  print ("Hello World!!") . It shows output "Hello Word!!" on your computer screen (shown below).



you can also write "Hello Word!!" in-between single quotes, print ('Hello World !!') " (shown below).



Now, If you want to print multiple lines then you have to write in triple quotes (shown below).



Write a program in comment section to print your name.

Comments