English
/

Coding basicsGuides

Learning to code from the very first line. 19 guides, read in order: before you start, step by step, checking and upkeep.

On this page · Start here / Most read / Before you start / Step by step / Checking and upkeep▾
  1. Start here
  2. Most read
  3. 1 Before you start
  4. 2 Step by step
  5. 3 Checking and upkeep

Start here: the 5 most useful Coding basics guides

Python __init__ and self Explained: Classes for BeginnersHow to initialize a class in Python with __init__ and self, with runnable examples, the shared-list trap, and whether __init__ is private6 min readPython List Comprehension: Syntax, Filtering, if-elseA Python list comprehension builds a list in one line: [expression for item in items if condition]. Syntax, filtering, if-else placement and examples5 min readHow to Read and Write CSV Files in PythonRead and write CSV files in Python with csv.reader, writer and DictReader; handle quoted commas, headers, newlines and numeric conversion5 min readPython JSON: dumps, loads, Type Changes, and Common ErrorsPython json.dumps returns a string; dump writes a file, loads parses text and load reads a file, with type changes and JSONDecodeError examples5 min readPython strip(), split(), join(), replace() for BeginnersWhat Python strip() does and how split, join, replace, lower and find work, with tested examples and the mistakes that trip up beginners5 min read

All 19 guides in reading order

Most read Coding basics guides from Google search, Oct 7 to Nov 3, 2026

How to Read and Write CSV Files in PythonRead and write CSV files in Python with csv.reader, writer and DictReader; handle quoted commas, headers, newlines and numeric conversion5 min readPython JSON: dumps, loads, Type Changes, and Common ErrorsPython json.dumps returns a string; dump writes a file, loads parses text and load reads a file, with type changes and JSONDecodeError examples5 min readPython List Comprehension: Syntax, Filtering, if-elseA Python list comprehension builds a list in one line: [expression for item in items if condition]. Syntax, filtering, if-else placement and examples5 min readPython __init__ and self Explained: Classes for BeginnersHow to initialize a class in Python with __init__ and self, with runnable examples, the shared-list trap, and whether __init__ is private6 min readPython Lists for Beginners, Create, Index, Slice, and ChangePython lists support indexing, slicing, and in-place changes. Assignment shares a list; copy() makes a shallow copy, and sort() returns None4 min read

1Before you start

Python __init__ and self Explained: Classes for BeginnersHow to initialize a class in Python with __init__ and self, with runnable examples, the shared-list trap, and whether __init__ is private6 min readTuples and Sets in Python, and When to Use EachWhat Python tuples and sets are, how they differ from lists, the one-item tuple trap, unpacking, removing duplicates, and set math with tested examples.4 min readWhat Is a Python Virtual Environment, and How Do You Use pip?Why Python projects use virtual environments, how to create and activate one with venv, and how to install, list, and pin packages with pip.4 min readIf, Elif, and Else in Python, How Programs Make DecisionsHow Python if, elif, and else statements work, why the order of conditions matters, and how and, or, not, in, and empty values behave in tests.4 min readPython Dictionaries Explained With Simple ExamplesA beginner guide to Python dictionaries, covering keys and values, adding and deleting items, get() versus KeyError, looping, and counting things.3 min readPython Lists for Beginners, Create, Index, Slice, and ChangePython lists support indexing, slicing, and in-place changes. Assignment shares a list; copy() makes a shallow copy, and sort() returns None4 min readPython Loops, For vs While, With Examples You Can RunA beginner's guide to Python's for and while loops, including break, continue, and the loop else clause, with every example runnable in python35 min readVariables and Data Types in Python, Explained SimplyA beginner-friendly walkthrough of Python variables and basic data types, with runnable examples based on the official Python tutorial.3 min read

2Step by step

Sorting in Python: key, reverse, and Sorting by More Than One FieldHow sorted() and list.sort() work in Python 3.13, with key functions, reverse=True, multi-field sorts, stability, and the TypeError from mixed types.4 min readPython JSON: dumps, loads, Type Changes, and Common ErrorsPython json.dumps returns a string; dump writes a file, loads parses text and load reads a file, with type changes and JSONDecodeError examples5 min readPython Dates and Times: datetime, timedelta, strftime, strptimeHow to build dates, add and subtract days, find the gap between two dates, and convert dates to and from text with Python's datetime module (3.13 output).6 min readGit Basics for Beginners, Your First Repository and CommitA beginner walkthrough of Git setup, git init, status, add, commit, diff, log, and .gitignore, using a tiny project and the official Pro Git book.4 min readHow to Format Numbers in Python f-Strings, Commas, Percents, PaddingUse Python f-string format specifiers to add thousands separators, show percentages, pad with zeros, line up columns, and debug values quickly.5 min readHow to Read and Write CSV Files in PythonRead and write CSV files in Python with csv.reader, writer and DictReader; handle quoted commas, headers, newlines and numeric conversion5 min readHow to Read and Write Text Files in PythonA beginner guide to opening, reading, writing, and appending text files in Python with the with statement, plus saving settings as JSON4 min readPython List Comprehension: Syntax, Filtering, if-elseA Python list comprehension builds a list in one line: [expression for item in items if condition]. Syntax, filtering, if-else placement and examples5 min readPython strip(), split(), join(), replace() for BeginnersWhat Python strip() does and how split, join, replace, lower and find work, with tested examples and the mistakes that trip up beginners5 min readWriting Your First Python Script with FunctionsA beginner walkthrough of turning interactive Python code into a reusable script, using the official Python tutorial's own module example.3 min read

3Checking and upkeep

How to Read a Python Error MessageRead a Python traceback from its final exception line, then inspect the failing frame. Examples explain syntax, type, name, and indexing errors4 min read