Now we will learn how Python's print () function works. Let's see how we can express ourselves through the Python programming language.
Every human being has a name, and this name is his identity. Likewise, every programming language has an identity, and that is an extension. Extensions allow us to recognize or understand which programming language. So we will first create a Python file. And the extension of the file must be saved with (.py).
Now looking at the extension of this file, we understand that this is a file of Python programming language. Now we will open this Python file with any editor.
The print () function is used to view the output of something in the Python programming language. First, we will write the print function. We can display any text using this print () function. And we can see what our program is outputting.
Now we will put a double quotation ("") inside this print () function. And whatever we write inside this double quotation will show as output. We will now write our names inside this double quotation. And let's run the Python program to see what writing our names actually looks like.
After running the Python program, we saw that our name was printed very nicely. We got a rough idea of how the print () function works in the Python programming language.
There are some more parameters inside the print () function that allow us to see our output in different ways. And we've created a video tutorial on how these parameters work or how to use them. With this video tutorial, you can easily understand how the parameters of the print () function work.
Comments
Post a Comment