Tag

#python

7articles
GuidesNov 16, 2026

Why Ctrl+C doesn't stop a program — and how one except line causes it

Why Ctrl+C doesn't stop a program: the script catches the signal itself, Docker and PID 1, a stuck terminal. How to find the cause and stop it for sure.

6 min read
BasicsNov 16, 2026

What is a shebang — and why a script from Windows fails with python3\r

What a shebang (#!) at the top of a script is, in plain words: who reads that line, why /usr/bin/env exists, and where the mysterious python3\r comes from.

5 min read
BasicsNov 11, 2026

What is a TTY — and why a program goes silent when output goes to a file

What a TTY in the terminal is, in plain words: why colors vanish in a pipe, Python stays silent until the end, and why you get a not-a-TTY error.

5 min read
GuidesOct 13, 2026

Why changing one item changes all of them — three causes and fixes

Changed one item and they all changed? Three reasons every array item changes at once: fill, an object reused in a loop, a shared default — and fixes.

6 min read
BasicsSep 30, 2026

What is a default parameter — and why in Python it can 'remember' the last call

What a default parameter is, in plain words: the value a function uses when you don't pass one. Two traps — null in JavaScript and a shared list in Python.

5 min read
GuidesJul 16, 2026

How to set up a Python virtual environment (venv) — in five commands, no library mess

A Python virtual environment isolates one project's libraries from the others and from your system. Step by step: how to create a venv, activate it, and when to use it.

5 min read
AI toolsJun 24, 2026

Python or JavaScript — which language should a beginner learn first

Python or JavaScript for a beginner? We compare entry cost, ecosystem, and AI — and give a straight answer on who should pick which, no fluff.

6 min read