Make

5 Things Every Python Beginner Should Learn First

Python starts with five moves: print, name, if, repeat, and a list. With those, a tiny game is possible.

What Is Python, Anyway?

Python is a programming language created in 1991 by Dutch programmer Guido van Rossum. It was designed with readability as the top priority, so code looks a lot like written English. It's increasingly used in Japanese high school "Information I" courses and has become the de facto standard language in AI research and data science.

Python runs on Windows, Mac, and Linux — all free to use. If you'd rather skip installation, browser-based tools like Google Colab and Replit let you write and run your first code immediately after signing up.

How It Works: Translates and Runs One Line at a Time

Python is an "interpreter language," meaning it translates and executes your code line by line as it runs. Write, execute, see the result, write again. This tight feedback loop is one of Python's biggest strengths for learning.

5 Essential Syntax Examples (copy-paste and run) Paste directly into Google Colab or Replit and hit Run ① print() — display output print("Hello, world!") print(2026 - 2008) ▶ Output Hello, world! 18 Numbers and strings both print as-is ② Variables — naming your data name = "ゆうき" age = 15 print(name, "は", age, "歳") ▶ Output ゆうき は 15 歳 "=" means assignment, not equality ③ if — branch on a condition score = 75 if score >= 60: print("合格") else: print("再テスト") ▶ Output ④ for + ⑤ list — loop over multiple values fruits = ["りんご", "みかん", "ばなな"] for f in fruits: print(f, "好き!") ▶ Output りんご 好き! みかん 好き!…
Fig. 1: Code examples for all 5 basics. Copy into Google Colab or Replit and run them yourself.

What Is Python Used For?

One of Python's defining strengths is its range of applications. It powers AI research, runs the back end of web services, automates daily email tasks, and much more — all in completely different domains.

Domains Where Python Is Actually Used (GitHub repository trends) Source: GitHub Octoverse, Stack Overflow, PyPI download trends (estimates) Machine learning & AI (PyTorch, TensorFlow) ~40% Data analysis & visualization (pandas, matplotlib) ~25% Web services (Django, FastAPI, Flask) ~15% Task automation (scripts, scraping) ~10% Education & learning (high school, university) ~5% Other (games, IoT, scientific computing) ~5% = Useful everywhere, but especially great for "working with data" Adoption is growing in Japanese high school "Information I" classes. Python is a core language powering the AI boom.
Fig. 2: Python usage by domain. AI and data analysis alone account for nearly 70% — a key advantage over other languages.

The 5 Basics to Learn First

Master these 5 things in order and you'll be able to build simple calculation programs and small tools. Rather than reading a textbook front to back, the fastest route is to "run these 5 things and feel them working."

① print() — Show results on screen

Just write print("Hello, world!") and "Hello, world!" appears on screen. Since programming isn't fun without seeing results, print is the very first thing you'll encounter.

② Variables — Give data a name

Writing name = "ゆうき" gives the string "ゆうき" the label "name." Later, print(name) outputs its value. A variable is your tool for naming and carrying data around.

③ if statements — Branch on a condition

Write something like if age >= 13: and the code that follows runs only when the condition is true. This is the first tool that lets your program "think and choose."

④ for loops — Repeat the same thing

Write for i in range(5): and everything inside repeats 5 times. The same code works for 100 or 10,000 repetitions too. Tasks that would be tedious by hand are done in an instant with for.

⑤ Lists — Group multiple values together

Write fruits = ["りんご", "みかん", "ばなな"] to store multiple values together. Pair it with a for loop and you can process every item in the list one by one.

These 5 are easier to understand when you combine them into a small project rather than learning each in isolation. For example, a program that "creates a list of your favorite subjects, prints each one, and outputs 'Strong subject' for any score above 80" uses all five: print, variables, if, for, and lists. Even short code becomes meaningful when the basics connect.

When practicing, don't just read the correct code — change a number or a word and run it again. Change range(5) to range(10), add items to a list, flip a condition. Breaking things and fixing them is what deepens your understanding of the syntax.

Common Pitfalls to Watch For

3 things that trip up beginners
  • Mixing spaces and tabs for indentation breaks your code. Set your editor to "convert Tab to 4 spaces" automatically.
  • Case matters. Print doesn't work — only lowercase print is valid.
  • Mixing strings and numbers like "3" + 4 causes an error. Use int("3") + 4 to match types.

Error messages look scary, but most of them helpfully tell you exactly which line has a problem and what's wrong. Build the habit of reading at least the first line of the error message before closing it — that alone will speed up your progress.

How Will This Help in the Future?

Python is the standard language in AI and data analysis. Research papers increasingly include Python code alongside the text, making it a language that — like English — pays to understand. With use cases spanning web apps, automation scripts, and scientific computing, Python is a safe choice as your first language.

That said, knowing Python alone isn't the goal. What matters most are the underlying ideas: variables, conditionals, loops, and collections of data. Once you build those in Python, moving to JavaScript, Java, or another language later feels like learning a new dialect — the concepts are already familiar.

What You Can Do Starting Today

Today: type two of the five
  1. print your name
  2. Store a number and add
  3. Then take one step into if or for

Once you're comfortable, the best way to keep improving is to make up your own challenges — "print a multiplication table," "display my favorite songs in order" — and solve them yourself.

Summary

Python was designed with readability as its top priority and is widely used in AI, web development, and data analysis. Once you can run print, variables, if statements, for loops, and lists, you can build simple tools on your own. Everything starts the moment you open an editor and run your first line.

Check What is a variable for?