Print(“Hello world”) in python full tutorial – Python Bootcamp 2022

Introduction

In this post, let’s see about “Hello world” and how it works and below is the video format of the post do check it if you have any doubt and I prefer you to watch the below video for more information on “Hello world” on python.

Video:

How “Hello world” in python works ❓

print(“Hello world”)

Once you enter this in any IDE or any python compiler the result will be something like

> Hello world

Let’s see about each character in the print(“Hello world”)

print: The print() function prints the specified message to the screen

The message can be a string or any other object, the object will be converted into a string before being written to the screen.

(): Parenthesis () you can only enter the display results inside the (). In python, the system assumes that whichever value in () will assume as a display result.

” “: You can’t just enter () and add the text or any value you need to enter the string. The string represents the display message.

In python, the string can either be ” “ or ‘ ‘ but it can’t be ” ‘. Which means both the string should be identical.

Printing print(“Hello world”)

printing hello world in python

print(“Hello world”)
print(‘Hello world’)

it’s wrong ????????

print(“Hello world’)
print(‘Hello world”)

Here is the result of Hello world in repl.it ????

https://replit.com/@techyrick/Hello-world#main.py

python hello world

Conclusion

I hope now, you will have an idea on hello world on python and if have any doubt please comment down below and I will help you out.


Also Read: Full tutorial on nessus for beginners

Also Read: Lynis vulnerability analysis tool tutorial