Python Fundamentals
Learn Python from scratch — variables, control flow, functions, strings, and file I/O. No prior programming experience required.
View badge details
About This Course
Start your Python journey with this hands-on beginner course. You'll learn to write and run Python programs, work with variables and data types, control program flow with if/else and loops, organize code with functions, manipulate strings, and read/write files. Every lesson pairs AI-guided teaching with hands-on coding in a browser-based VS Code environment no setup required. By the end, you'll be writing real Python scripts that process data and produce formatted output. This is Course 1 of 3 in the Python Beginner Track.
Course Curriculum
10 Lessons
Hello Python - Your First Program
print(), strings, numbers, math operators, f-strings, comments, syntax errors vs runtime errors
Hello Python - Lab Exercises
print(), strings, numbers, math operators, f-strings, comments, syntax errors vs runtime errors
Variables, Types and Input
Variables, naming conventions, int/float/str/bool, type(), input(), type conversion, ValueError
Variables and Input - Lab Exercises
Variables, naming conventions, int/float/str/bool, type(), input(), type conversion, ValueError
Control Flow - Decisions and Loops
if/elif/else, comparison operators, logical operators (and/or/not), for loops with range(), while loops, break/continue
Control Flow - Lab Exercises
if/elif/else, comparison operators, logical operators (and/or/not), for loops with range(), while loops, break/continue
Functions and Scope
def, parameters, return values, default arguments, local vs global scope, function composition, docstrings
Functions - Lab Exercises
def, parameters, return values, default arguments, local vs global scope, function composition, docstrings
Strings, Formatting and Basic I/O
String methods (split/join/strip/replace/find), slicing, f-string formatting, file I/O with open/read/write, with statement, parsing text
Strings and I/O - Lab Exercises
String methods (split/join/strip/replace/find), slicing, f-string formatting, file I/O with open/read/write, with statement, parsing text