🟢 Beginner  ·  Lesson 03

First Python Program: Hello World

पहला Python Program: Hello World

What is Hello World Program?

Hello World Program means the Hello World program is the first program used to check whether Python is installed and running correctly.

In real programs, this topic helps in testing Python installation. Learn the idea first, then type the program yourself and compare the output.

💡 At a Glance
PointDetails
Course AreaCore Python
Basic programming concepts used to write Python programs.
Main Usetesting Python installation
Example Filehello-world.py
Practice FocusRun, change values, and explain the output line by line.

Why should you learn this?

  • It is useful for testing Python installation.
  • It connects with understanding top-to-bottom execution.
  • It improves your ability to read, write and debug Python programs.

Important Terms

These terms are used directly in this lesson. Understand them before memorising the code.

TermMeaning
print functionprint() displays text, numbers or results on the screen.
stringText data written inside quotes, such as "Hello".
program executionThe process of running instructions from top to bottom.
outputThe result shown on the screen after the program runs.
first programA small program used to test installation and understand program structure.

Syntax / Basic Pattern

The simple pattern is: prepare data, apply the concept, then show the result.

Basic Pattern
print("Hello, World!")
print("Welcome to CodeKaFunda Python Tutorial")

Complete Example Program

Python – hello-world.py
print("Hello, World!")
print("Welcome to CodeKaFunda Python Tutorial")

Expected Output

Hello, World! Welcome to CodeKaFunda Python Tutorial

Program Explanation

  • print("Hello, World!") displays information or calculated result on the screen.
  • print("Welcome to CodeKaFunda Python Tutorial") displays information or calculated result on the screen.

Where will you use it?

  • Testing python installation.
  • Understanding top-to-bottom execution.
  • Printing first output.

Common Mistakes

  • Writing code with wrong indentation.
  • Using input() value directly in calculations without converting it to int or float.
  • Using unclear variable names that make the program difficult to understand.

Practice Tasks

  1. Type the program in hello-world.py and run it.
  2. Change input values or sample data and observe the new output.
  3. Create one example related to testing Python installation.
  4. Write 5 lines explaining the logic in your own words.

Summary

Hello World Program is not a theory-only topic. You should be able to explain the meaning, write the example, run it successfully, and use it in a small practical program.

Hello World Program क्या है?

Hello World Program ka matlab hai: The Hello World program is the first program used to check whether Python is installed and running correctly. Simple words me, ye topic practical Python programs likhne me direct use hota hai.

Is topic ko sirf definition ke liye nahi, balki testing Python installation jaise real examples ke liye practice karein.

यह क्यों सीखना जरूरी है?

  • Ye testing Python installation me kaam aata hai.
  • Ye understanding top-to-bottom execution se bhi connected hai.
  • Isse aap code ka output aur errors better samajh paate hain.

Important Terms

TermMeaning
print functionprint() displays text, numbers or results on the screen.
stringText data written inside quotes, such as "Hello".
program executionThe process of running instructions from top to bottom.
outputThe result shown on the screen after the program runs.
first programA small program used to test installation and understand program structure.

Syntax / Basic Pattern

Basic idea: pehle data तैयार करें, phir Python logic apply करें, aur finally result display करें.

Basic Pattern
print("Hello, World!")
print("Welcome to CodeKaFunda Python Tutorial")

Complete Example Program

Python – hello-world.py
print("Hello, World!")
print("Welcome to CodeKaFunda Python Tutorial")

Expected Output

Hello, World! Welcome to CodeKaFunda Python Tutorial

Program Explanation

  • print("Hello, World!") displays information or calculated result on the screen.
  • print("Welcome to CodeKaFunda Python Tutorial") displays information or calculated result on the screen.

Practical Uses

  • Testing python installation.
  • Understanding top-to-bottom execution.
  • Printing first output.

Common Mistakes

  • Writing code with wrong indentation.
  • Using input() value directly in calculations without converting it to int or float.
  • Using unclear variable names that make the program difficult to understand.

Practice Tasks

  1. Program ko hello-world.py file me type karke run karein.
  2. Values change karke output compare karein.
  3. testing Python installation par ek छोटा example banayen.
  4. Logic ko apne words me 5 lines me likhein.

सारांश

Hello World Program ko tab complete maanenge jab aap iska meaning, example, output aur practical use clearly explain kar saken.

← Back to Python Tutorial