Python Print() Function Example

09-Jun-2021

.

Admin

Python Print() Function Example

Hi Guys,

Now let's see example of how to print hello wordl! in python. I am going to share with you simple hello world example in python. We will talk about python print() function example. In this tutorial, i will show you print() with variable in python.

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

Here I will give you simple and easy example of print function in python. So let's see the bellow example.

Example 1


hello.py

print('Hello World!')

Output

Hello World!

Example 2

hello.py

a = 'Hello World!'

print(a)

Output

Hello World!

Run python file:

python hello.py

#Python