Skip to content
Learn Netverks

Lesson

Step 2/36 6% through track

what-is-python

What is Python?

Last reviewed May 28, 2026 Content v20260528
Track mode
server_script
Means
Server runner
Reading
~2 min
Level
beginner

This lesson

This lesson teaches What is Python?: the syntax, patterns, and safety habits you need before advancing in Python.

Teams still ship What is Python? in Python codebases—skipping it leaves gaps in debugging and code reviews.

You will apply What is Python? in contexts like: Scripts, Django/FastAPI apps, notebooks, and glue code between systems.

Write Python 3 in the editor and click Run on server—the dev runner executes your script with print() for output; stdlib only in playground snippets (LEARNING_RUNNER_ENABLED=true).

Excellent first language—finish JavaScript basics if you already know the web, then Django for server-rendered apps.

Python is a general-purpose, interpreted language created by Guido van Rossum and maintained by the Python Software Foundation and open-source contributors. It prioritizes readability—often called "executable pseudocode."

Core characteristics

  • Dynamic typing — types attach to objects, not variable names; optional static hints with type checkers
  • Automatic memory management — reference counting plus a cyclic GC; no manual free() like C++
  • Multi-paradigm — procedural, OOP, and functional patterns (comprehensions, higher-order functions)
  • Batteries included — rich stdlib for I/O, networking, dates, and more

Typical run flow (local)

  1. Save code to script.py
  2. Run python3 script.py
  3. CPython compiles to bytecode (.pyc cached) and executes

Where Python appears

Django and Flask APIs, data pipelines, Jupyter notebooks, DevOps automation, ML research, and glue scripts. Compare JVM careers with the Java track or .NET with C#.

Important interview questions and answers

  1. Q: Is Python only for scripting?
    A: No—large production systems use Python for web (Django), data engineering, and ML serving.
  2. Q: Python vs Java in one line?
    A: Both are high-level OOP languages; Python is dynamically typed with indentation-based blocks; Java is statically typed on the JVM.

Self-check

  1. What command runs a Python script locally?
  2. Name one domain where Python is commonly used.

Tip: Python source uses .py files executed by CPython—think readable scripting with room to grow into Django.

Interview prep

Is Python garbage collected?

Yes—CPython uses reference counting plus a cyclic garbage collector for unreachable object cycles.

Who uses Python?

Django/Flask teams, data engineers, ML researchers, DevOps automation, and organizations scripting around larger systems.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Interpreted meaning?
  • GIL one line?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump