Skip to content
beginner

Python Basics

Build your Python foundation with variables, data types, strings, numbers, input, output, and everyday operations.

Tutorials

Articles in Python Basics

Follow these lessons in order, or jump directly to the topic you need.

Beautiful silhouette of mountains and trees at sunrise with vibrant sky colors.
beginner
8 min read

User Input in Python

A program that never asks a question can only ever do the same thing. The moment you add input(), your script stops being a fixed script and becomes a tool…

Read tutorial
Close-up of a large pot filled with black dye used in traditional incense stick production indoors.
beginner
9 min read

Python Comments and Code Style

Comments are not for Python. They are for the next human who reads your code—and that human is often you, six weeks later. The interpreter skips every line…

Read tutorial
Close-up view of HTML and CSS code displayed on a computer screen, ideal for programming and technology themes.
beginner
11 min read

Basic Math in Python

Python does not make you memorize a calculator manual. It hands you a small set of operators and lets you run the calculation and read the answer…

Read tutorial