A Complete Beginner's Study Guide
Modules 1–3: Fundamentals, Input/Output & Formatting, Decision Structures
Covers hardware & software basics, data types & operators, string formatting, Turtle graphics, and if/elif/else &
Boolean logic — with worked examples throughout.
,Table of Contents
Module 1 — Programming Fundamentals
1.1 What Is a Program? · 1.2 Hardware · 1.3 System vs. Application Software
1.4 How Data Is Stored · 1.5 How a Program Runs · 1.6 Machine Language to Python
1.7 Keywords, Operators & Syntax · 1.8 Variables & Values · 1.9 Indentation
1.10 print() and input() · 1.11 Interactive vs. Script Mode
Module 2 — Input, Processing, and Output
2.1 The Program Development Cycle · 2.2 Input → Processing → Output
2.3 String Literals & Comments · 2.4 Getting Input · 2.5 Math Operators
2.6 Numeric Data Types · 2.7 Number Systems · 2.8 Order of Operations
2.9 String Concatenation & Repetition · 2.10 print() end/sep
2.11 String Formatting · 2.12 Slicing & Escape Characters · 2.13 String Methods
2.14 Named Constants · 2.15–2.20 Turtle Graphics & Advanced Formatting
Module 3 — Decision Structures and Boolean Logic
3.1 if Statement · 3.2 if-else · 3.3 Comparing Strings
3.4 Nested Decisions & if-elif-else · 3.5 Logical Operators
3.6 Boolean Variables · 3.7 Conditional Expressions · 3.8 Walrus Operator
3.9 Turtle State-Checking Functions
, Module 1 — Programming Fundamentals
1.1 What Is a Program?
● Program — instructions telling a computer what to do.
● Software — a collection of programs.
● Programmer / Software Developer — writes, designs, tests, and maintains software.
Tip: Analogy: software is a recipe; the programmer is the chef writing it.
Python is beginner-friendly but also used professionally at companies like Google, NASA, YouTube, major
game studios, and the NYSE.
1.2 Hardware
Hardware refers to the physical parts of a computer. There are five main components:
● CPU — runs instructions; the most essential part of the computer.
● RAM (main memory) — a temporary "work area" for running programs and data; wiped when
power is lost.
● Secondary Storage — long-term storage (HDD, SSD, USB) that survives power-off.
● Input Devices — keyboard, mouse, microphone, camera, etc.
● Output Devices — monitor, printer, speakers.
A microprocessor is a CPU built onto a single chip. The ENIAC (1945) was the first programmable electronic
computer — it was 8 feet tall, 100 feet long, and weighed 30 tons.
1.3 Software: System vs. Application
System Software runs the computer itself:
● Operating System — controls hardware, manages devices and storage, and lets other programs run
(Windows, macOS, Linux, Android, iOS).
● Utility Programs — virus scanners, file compression tools, backup software.
● Development Tools — assemblers, compilers, interpreters.
Application Software is what people use day to day: word processors, spreadsheets, browsers, email clients,
games.
1.4 How Data Is Stored
A bit is the smallest unit of data — a 0 or a 1. A byte is 8 bits.
Binary Decimal
0000 0
0001 1
0010 2
0011 3
0100 4
A single byte can hold values from 0–255 (all bits off = 0, all bits on = 255). Larger numbers simply use more
bytes.