First Code In Python Explained Practically – Beginner’s Level

To build a program that writes, Hello World, you will need a Python IDLE installed on your computer or having the code editor downloaded and installed on your phone be it iPhone/Android.

To build or write a code, follow the below steps:

Line 1: print(“Hello, World!”)

That is all, in this case, you will need to run the code.

 

Let’s break down the above code one after the other:

Print(“Hello, World!”) : line-by-line explanation

  1. PRINT( ):

This is known to be a built-in Python function that outputs its argument to the console. In addition, it is observed as the fundamental function in Python that is used to display messages, values or even other results to the user.

  1. “HELO, WORLD!”

This, in programming,  is called an argument. This is passed to the command print( ) or function. Also, it is a string literal, which is a sequence of characters enclosed in quotes.

However, the entire string contains the familiar greeting, such as “Hello, World!”

 

In the entire program building, when this code is executed, the print ( ) function will output the string “hello, world” to the console, followed by a newline character.

What is the importance of the command?

This code is a simple demonstration of how to use the print( ) function to display a message in Python.

 

Related posts:

About Author


Discover more from SURFCLOUD TECHNOLOGY

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from SURFCLOUD TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading