A simple program that displays “Hello, World!”. It’s often used to illustrate the syntax of the language.
To understand this example, you should have the knowledge of the following Python programming topics:
Source Code
# This program prints Hello, world!
print('Hello, world!')
Output
Hello, world!
In this program, we have used the built-in print() function to print the string Hello, world! on our screen.
By the way, a string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes, or triple quotes.
Related posts:
Python staticmethod()
Deep Learning with Python - A Hands-on Introduction - Nikhil Ketkar
Python Program to Get the Full Path of the Current Working Directory
Python Namespace and Scope
Python RegEx
Python String encode()
Python del Statement
Python Program to Slice Lists
Python __import__()
Python Program to Find the Largest Among Three Numbers
Python Objects and Classes
Python float()
Python Program to Find All File with .txt Extension Present Inside a Directory
Python frozenset()
Python Exception Handling Using try, except and finally statement
Python bin()
Deep Learning in Python - LazyProgrammer
Python Program to Parse a String to a Float or Int
Python List clear()
Python Program to Append to a File
Python String isalnum()
Python String split()
Python String count()
Python Set clear()
Python Dictionary clear()
Python Closures
Python Program to Access Index of a List Using for Loop
Python Set symmetric_difference()
Debug a JavaMail Program
Python abs()
Python callable()
Python String lstrip()