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!
-
42:00
CS50 Harvard
2 months agoOffice Hours with Professor Malan and Yuliia Zhukovets CS50 Office
151 -
13:43
The Kevin Trudeau Show Limitless
5 hours agoClassified File 3 | Kevin Trudeau EXPOSES Secret Society Brainwave Training
1.5K4 -
1:05:33
Russell Brand
3 hours agoTrump Goes NUCLEAR on China - accuses Xi of CONSPIRING against US with Putin & Kim - SF627
93.7K39 -
1:14:47
Sean Unpaved
2 hours agoTrey Wingo's Gridiron Grab
9.68K1 -
13:07
Silver Dragons
20 hours agoBullion Dealer Reacts to SILVER PRICE SURGING!
1.54K5 -
1:06:28
Timcast
3 hours agoTrump Admin Threatens GOP Who Vote To Release Epstein Files
129K92 -
2:13:09
Side Scrollers Podcast
4 hours agoDruski/White Face Controversy + Women “Experience Guilt” Gaming + More | Side Scrollers Live
22.5K3 -
1:39:53
The Mel K Show
3 hours agoMORNINGS WITH MEL K - Narratives Implode as Light Shines on Covid Deception 9-3-25
17.6K7 -
The Shannon Joy Show
3 hours agoExclusive With Congressman Tom Massie: "The Epstein Files Are NOT A Hoax. There Are Real Victims"
12.1K2 -
1:52:46
Steven Crowder
5 hours agoCongress Drops New Epstein Files and Trump Drops New Bombs on Venezuela Terrorists
307K183