Python Fundamentals
This beginner-friendly course covers Python basics, operators, control flow, data structures, functions, file handling, object-oriented programming, regular expressions, and modules.
What you'll learn
Introduction
Learn what programming is and how Python is used to solve problems. You’ll install and set up Python on Windows or Mac so you’re ready to start coding.
Python Basics
Learn the core building blocks of Python: variables, data types, numbers, and strings. You’ll also take input from users and convert between data types with type casting.
Python Operators
Learn to perform calculations and comparisons with arithmetic, assignment, comparison, and logical operators. You’ll also use identity and membership operators to check object identity and whether values belong to a collection.
Control Flow
Control how your program runs using if…else and match-case statements, and repeat tasks with for and while loops. You’ll learn to debug code and use break/continue, then practise with FizzBuzz and BMI exercises.
Data Structures
Learn to store, organise, and manipulate data using Python’s four core collections: lists, tuples, sets, and dictionaries. You’ll understand when to use each one through hands-on exercises.
Functions
Write reusable code by creating functions, working with parameters, and understanding variable scope and lifetime. You’ll also use lambda functions along with filter, map, and reduce to process data concisely.
Exception Handling
Understand the different kinds of errors: compile-time, runtime, and logical bugs. You’ll learn to catch and handle exceptions so your programs stay reliable when things go wrong.
File Handling
Learn to create, open, read, write, and delete files, and move through them with file seek. You’ll also copy, move, rename, and list files to manage data on your computer.
Object Oriented Programming
Model real-world things with classes, objects, constructors, and destructors. You’ll master the four OOP pillars (inheritance, encapsulation, abstraction, polymorphism) plus class variables, class methods, and static methods.
Regular Expression
Learn powerful text searching and pattern matching using character classes, meta characters, quantifiers, anchors, and special sequences. You’ll apply regex to find and validate patterns in text.
Modules and Packages
Organise your code by creating your own modules and packages and importing them into other programs. You’ll also learn to install and use third-party Python libraries.
Course content
01Introduction5 lessons
- LessonWelcome
- LessonWhat is Programming
- LessonGetting Started with Python - Windows
- LessonGetting Started with Python - Mac
- QuizIntroduction Quiz
02Python Basics8 lessons
- LessonVariables
- LessonData Types
- LessonNumbers
- LessonStrings
- LessonInput and Type Casting
- ReadingBasics Reading Material
- QuizBasics Quiz
- ExerciseBasics Exercise
03Python Operators10 lessons
- LessonIntroduction
- LessonArithmetic Operators
- LessonAssignment Operators
- LessonComparison Operators
- LessonLogical Operators
- LessonIdentity Operators
- LessonMembership Operators
- ReadingPython Operators Reading Material
- QuizOperators Quiz
- ExerciseOperators Assignment
04Control Flow10 lessons
- LessonIf...Else
- LessonMatch Case
- LessonDebugging Code
- LessonFor Loop
- LessonWhile Loop
- LessonBreak and Continue
- ReadingControl Flow Reading Material
- QuizControl Flow Quiz
- ExerciseFizzBuzz Exercise
- ExerciseBMI Exercise
05Data Structures9 lessons
- LessonIntroduction
- LessonLists
- LessonTuples
- LessonSets
- LessonDictionaries
- ReadingData Structures Reading Material
- QuizData Structures Quiz
- ExerciseData Structures Exercise
- ReadingData Structures Exercise Solution
06Functions12 lessons
- LessonIntroduction
- LessonCreating a Function
- LessonFunction Parameters
- LessonFunction Stub
- LessonVariable Scope and Lifetime
- LessonLambda Function
- LessonFilter
- LessonMap
- LessonReduce
- QuizFunctions Quiz
- ExerciseFunctions Exercise
- ReadingFunctions Exercise Solution
07Error Handling9 lessons
- LessonIntroduction
- LessonCompile-time Errors
- LessonRuntime Errors
- LessonLogical Errors - Bugs
- LessonExceptions
- ReadingExceptions Reading Material
- QuizExceptions Quiz
- ExerciseExceptions Exercise
- ReadingExceptions Exercise Solution
08File Handling14 lessons
- LessonIntroduction
- LessonCreating a File
- LessonOpen a File
- LessonReading a File
- LessonFile Seek
- LessonWriting to a File
- LessonDeleting a File
- LessonCopy a File
- LessonMove a File
- LessonRenaming a File
- LessonListing Files
- QuizFile Handling Quiz
- ExerciseFile Handling Exercise
- ReadingFile Handling Exercise Solution
09Object Oriented Python12 lessons
- LessonIntroduction
- LessonClasses
- LessonConstructors and Destructors
- LessonInheritance
- LessonEncapsulation
- LessonAbstraction
- LessonPolymorphism
- LessonClass Variables
- LessonClass Methods
- LessonStatic Methods
- QuizOOP Quiz
- ExerciseOOP - Assignment
10Regular Expression10 lessons
- LessonIntroduction
- LessonBasic Patterns
- LessonCharacter Clases
- LessonMeta Characters
- LessonQuantifiers
- LessonAnchors
- LessonSpecial Sequences
- LessonSet
- QuizRegex Quiz
- ExerciseRegex Assignment
11Modules and Packages7 lessons
- LessonIntroduction
- LessonCreate Python Module
- LessonImport a Module
- LessonCreate Python Package
- LessonThird-Party Packages
- QuizModules Quiz
- ExerciseModules Assignment
What students say
I love the course. It is so useful & effective
I highly recommend this course. The instructor (Nate) did excellent job in explaining.