Programming
Learn Python from scratch with Harvard's CS50P course, covering functions, loops, exceptions, libraries, unit tests, file I/O, regex, and object-oriented programming.
Learn from: the original creator. Original content published on YouTube. DigitalSkillX organizes these public resources into a structured learning path. DigitalSkillX does not claim ownership or partnership.
Now playing: CS50P - Lecture 8 - Object-Oriented Programming
This learning path follows the CS50P 2022 playlist, a free introduction to programming using Python. You'll start with the basics like functions and variables, then move through conditionals, loops, and exceptions. Later lectures cover using third-party libraries, writing unit tests, reading and writing files, validating data with regular expressions, and modeling real-world entities with classes and objects. The course is designed for beginners with no prior programming experience, but also works for those who want to learn Python specifically. You only need a web browser, or you can write code on your own computer.
Beginners who want a structured free introduction before deeper practice.
Lesson 1: CS50P - Introduction
This is the course introduction. It explains what CS50P is, how to enroll for free, and where to find slides and source code. It also outlines the topics you'll cover, from functions and variables to classes and file I/O.
Open on YouTubeLesson 2: CS50P - Lecture 0 - Functions, Variables
Lecture 0 covers the basics of Python: functions, arguments, return values, variables, and types. You'll write your first programs and learn how to use the print function and handle user input.
Open on YouTubeLesson 3: CS50P - Lecture 1 - Conditionals
Lecture 1 introduces conditionals and Boolean expressions. You'll learn how to use if, elif, and else statements to make decisions in your code, and how to compare values.
Open on YouTubeLesson 4: CS50P - Lecture 2 - Loops
Lecture 2 covers loops, including while and for loops. You'll learn how to repeat actions, iterate over sequences, and use range and other loop controls.
Open on YouTubeLesson 5: CS50P - Lecture 3 - Exceptions
Lecture 3 explains exceptions and how to handle errors gracefully. You'll learn about try and except blocks, and how to catch and respond to runtime errors.
Open on YouTubeLesson 6: CS50P - Lecture 4 - Libraries
Lecture 4 is about libraries. You'll learn how to import and use third-party libraries, and explore some built-in modules like random, statistics, and sys.
Open on YouTubeLesson 7: CS50P - Lecture 5 - Unit Tests
Lecture 5 focuses on unit tests. You'll learn how to write tests for your functions using pytest, and why testing is important for reliable code.
Open on YouTubeLesson 8: CS50P - Lecture 6 - File I/O
Lecture 6 covers file I/O. You'll learn how to read from and write to files, work with CSV files, and handle data persistence.
Open on YouTubeLesson 9: CS50P - Lecture 7 - Regular Expressions
Lecture 7 introduces regular expressions. You'll learn how to use the re module to validate and extract data from strings, and how to build patterns for common tasks.
Open on YouTubeLesson 10: CS50P - Lecture 8 - Object-Oriented Programming
Lecture 8 covers object-oriented programming. You'll learn how to define classes, create objects, use methods and properties, and model real-world entities.
Open on YouTubeLesson 11: CS50P - Lecture 9 - Et Cetera
Lecture 9, titled 'Et Cetera', covers additional Python features and best practices. Topics include set operations, global constants, type hints, and documentation strings.
Open on YouTube0 of 11 lessons marked complete (0%). Progress stays on this device until you choose to get a certificate.