Introduction to Python
Enrol to unlock allPaused while this window is in the background
Getting started
What Is Python?
8.0 (1)You’re watching a free preview
Enrol to unlock every lesson, notes, Q&A and your certificate.
What you will learn
- Identify Python as a readable programming language
- Explain the purpose of the print function
- Run a simple Python script to display text
Introduction
This lesson introduces Python, a language that lets you give clear instructions to a computer. It is perfect for Indian students because it reads like plain English, making it easy to start coding without complex rules.
Concept
Python is like writing a clear to-do list for a computer. Instead of using confusing symbols, you use words that make sense. Think of it like a teacher writing steps on a blackboard for a class activity. The computer follows these steps exactly as written, one line at a time.
Indian example
Imagine you are splitting a canteen bill with your friend Rohan. You tell the cashier, 'Please give me two samosas and one chai.' The cashier understands your words and acts on them. Python works the same way; you tell the computer what to do using simple words, and it executes your request.
Code walkthrough
The first line, print("Hello, India!"), tells the computer to display a specific message. The word print is the command that sends text to the screen. The text inside the quotes is what you want to see. When you run this code, the computer shows Hello, India! exactly as you typed it.
Practice
Try changing the text inside the quotes to your own name or your school name. You can also add a second line to print a message about your favorite cricket team. This helps you understand that Python can display multiple lines of text.
Summary
Python is a user-friendly language that uses simple English-like commands. The print function is your first tool for making the computer speak. Mastering this basic command is the first step toward building useful programs.