Premium Only Content

CS50P - Lecture 4 - Libraries
TABLE OF CONTENTS
00:00:00 - Introduction
00:00:24 - Libraries
00:00:54 - Modules
00:03:13 - import
00:07:35 - from
00:11:23 - randint, shuffle
00:17:01 - statistics
00:19:13 - Command-line Arguments, sys
00:32:59 - sys.exit
00:40:55 - Slices
00:44:41 - Packages, PyPI, pip
00:47:10 - cowsay
00:53:26 - APIs, requests, JSON
01:10:06 - Custom Libraries
An introduction to programming using a language called Python. Learn how to read and write code as well as how to test and "debug" it. Designed for students with or without prior programming experience who'd like to learn Python specifically. Learn about functions, arguments, and return values (oh my!); variables and types; conditionals and Boolean expressions; and loops. Learn how to handle exceptions, find and fix bugs, and write unit tests; use third-party libraries; validate and extract data with regular expressions; model real-world entities with classes, objects, methods, and properties; and read and write files. Hands-on opportunities for lots of practice. Exercises inspired by real-world programming problems. No software required except for a web browser, or you can write code on your own PC or Mac.
Whereas CS50x itself focuses on computer science more generally as well as programming with C, Python, SQL, and JavaScript, this course, aka CS50P, is entirely focused on programming with Python. You can take CS50P before CS50x, during CS50x, or after CS50x. But for an introduction to computer science itself, you should still take CS50x!
-
43:43
CS50 Harvard
6 months agoCS50 Seminars 2024 - Lights, Data, Action!
1031 -
LIVE
LFA TV
23 hours agoLFA TV ALL DAY STREAM - MONDAY 9/15/25
845 watching -
54:12
Donald Trump Jr.
3 hours agoCharlie's Vision. Our Future. | TRIGGERED Ep274
143K99 -
1:03:35
BonginoReport
4 hours agoKirk’s Alleged Killer Dating Hateful Transgender??? - Nightly Scroll w/ Hayley Caronia (Ep.134)
80.4K95 -
1:01:12
The Nick DiPaolo Show Channel
5 hours agoKirk Assassination Exposes Insane Left | The Nick Di Paolo Show #1793
50.7K19 -
1:48:38
The Mike Schwartz Show
4 hours agoTHE MIKE SCHWARTZ SHOW Evening Edition 09-15-2025
24.1K10 -
LIVE
LIVE WITH CHRIS'WORLD
5 hours agoLIVE WITH CHRIS'WORLD - They Just Created 1 Million Charlie Kirks
86 watching -
DVR
Quite Frankly
7 hours agoStaggering Evil, Official Stories & Open Lines | Rich Baris 9/15/25
22.7K4 -
1:09:33
TheCrucible
5 hours agoThe Extravaganza! EP: 36 (9/15/25)
166K18 -
1:13:06
Candace Show Podcast
4 hours agoThey Are Lying About Charlie Kirk. | Candace Ep 235
101K464