BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Python Program to Print Hello World

By Chaitanya Singh | Filed Under: Python Examples

In this post, we will write a simple Python program to display Hello World on the screen. This is one of the most basic program, which we usually try when start learning a programming language.

Python script to print Hello World on screen

Printing a message on screen is very simple in Python programming. Unlike java where you have to write a couple of lines of code to do this task, In Python you can print a message on screen with a single line of code (print statement).

# This prints Hello World on the output screen
print('Hello World')

Output:

Hello World

Running Hello World Python script on PyCharm IDE
Displaying Hello World on the Screen using Python script

Related Posts:

  1. Hello World Program in C
  2. C++ program to print Hello World
  3. First Kotlin Program to display Hello World on screen

Leave a Reply Cancel reply

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

Python Tutorial

Introduction

  • Python Tutorial
  • Python Introduction
  • Install Python
  • PyCharm IDE Installation
  • Python in PyCharm
  • Python Comments
  • Python Variables
  • Python Keywords & Identifiers
  • Python data types

Flow Control

  • Python If
  • Python if..else
  • Python if..elif..else
  • Python Nested If
  • Python for loop
  • Python while loop
  • Python break
  • Python continue
  • Python pass

Python Functions

  • Python Functions
  • Python Recursion

Python Datatypes

  • Python Numbers
  • Python List
  • Python Strings
  • Python Tuple
  • Python Dictionary
  • Python Set

Python OOPs

  • Python OOP
  • Python Class & Object
  • Python Constructors

Python Examples

  • Python Programs

Copyright © 2012 – 2022 BeginnersBook . Privacy Policy . Sitemap