tubeshowcase●♡ My collection 0
← Learn to Code

Learn to Code50:54

CS50P - Lecture 5 - Unit Tests

CS50 ↗

From the creator

This is CS50P, CS50's Introduction to Programming with Python. Enroll for free at https://cs50.edx.org/python. Slides, source code, and more at https://cs50.harvard.edu/python. Playlist at https://www.youtube.com/playlist?list=PLhQjrBD2T3817j24-GogXmWqO5Q5vYy0V. TABLE OF CONTENTS 00:00:00 - Introduction 00:00:24 - Unit Tests 00:01:15 - Testing calculator.py 00:10:20 - assert 00:12:18 - AssertionError 00:16:58 - pytest 00:28:38 - Categories of Tests 00:35:53 - Testing for Exceptions 00:38:13 - Side Effects and Testing 00:47:54 - Collections of Tests 00:50:16 - Conclusion 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, Pytho

Published 2022-07-22 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code