Aral Code

Getting Started Lesson 1 of 23

Introduction to Python

What Python is, why it's a great first programming language, what people build with it, and what a Python program looks like.

Python is a programming language created by Guido van Rossum and first released in 1991. It was designed to be easy to read and fun to use. (The name comes from the British comedy show Monty Python, not the snake.) Today it's taught in schools and universities around the world, and used by companies like Google, Netflix and NASA.

Your first Python program

print("Mabuhay, Pilipinas!")

Output

Mabuhay, Pilipinas!

That's it: one line. print() shows text on the screen. Compare that with Java, where the same program needs five lines and words like public static void main. This simplicity is why Python is such a good first language.

A slightly bigger program

name = "Juan"
grades = [88, 91, 85]
average = sum(grades) / len(grades)

print("Student:", name)
print("Average:", round(average, 2))

if average >= 90:
    print("With honors! 🎉")
else:
    print("Keep it up! 💪")

Output

Student: Juan
Average: 88.0
Keep it up! 💪

Even without knowing Python yet, you can probably guess what each line does. That's the point: Python code is meant to be read by humans.

What is Python used for?

  • Data science and research: analyzing survey results, making charts, statistics for your research paper.
  • Artificial intelligence: most AI and machine learning tools are built with Python.
  • Automation: renaming hundreds of files, filling in spreadsheets, sending reminders.
  • Websites: frameworks like Django and Flask run the server side of websites.
  • Games and hardware: simple games with Pygame, and controlling robots and Raspberry Pi projects.

Why learn Python?

  • Readable: fewer symbols, more plain words like and, or, not, in.
  • Free: Python and its tools cost nothing, on Windows, Mac, Linux and even Android.
  • Huge community: almost any question you have has been answered online.
  • "Batteries included": it comes with modules for math, dates, random numbers, files and more.
  • In demand: Python skills are valued in jobs here and abroad, including BPO/IT companies and data analytics.

Python versus JavaScript

PythonJavaScript
Main useData, AI, automation, serversInteractive web pages
Runs inYour computer (Python installed)Every web browser
Code blocksIndentation (spaces)Curly braces { }
Print somethingprint("Hi")console.log("Hi")

Both are great choices, and the concepts you learn in one transfer to the other.

How this course works

Each lesson shows code in a dark box and its output in the box below it, labeled Output. To learn properly, type the examples yourself instead of copying them. Your fingers learn the syntax, and you'll make (and fix) small mistakes, which is how real learning happens.

Quick Quiz

Check what you learned. Walang grade ito, practice lang. 🙂

1. What does print("Hello") do?
2. Where does the name "Python" come from?
3. Which version of Python should you learn?
4. Which field uses Python heavily?

By Sir Reyel · Last updated 2026-12-04