Skip to main content
Guest
My Media
My Playlists
My History
Login
Search
Add New
Media Upload
Guest
My Media
My Playlists
My History
Login
Cornell University
Cornell University
Close search in video box
Home
Channels
My Media
Help
Back
Top
All
Home
Channels
My Media
Help
Play
Play
Back to video
00:00
Play
Seek 10 seconds backwards
Seek 10 seconds forward
00:00 / 00:00
Mute
Picture in picture
Fullscreen
Lesson 13.3 Assert Statements
From
Hannah Lee
October 10, 2020
83 plays
83
Related Media
Loading…
Details
Details
Share
Details
Share
Close search in video box
To search for an exact match, please use Quotation Marks. Example: “computer”
Back
Determining responsibility can get really tedious. In this video, we show how we can responsibility explicit by creating errors on purpose. We introduce the assert statement, which will allow us to enforce preconditions.
Tags
function
precondition
error
space
call
behavior
problem
statement
expression
stack
violation
module
string
test
command
numbers
functions
definition
change
fault
Appears In
CS 1110 Fall 2020
Link to Media Page
Link to Media Page
Embed
oEmbed
Email
Link to Media Page
Embed
oEmbed
Email
Start & End Time:
Start Time:
Start at
Set current video time as start time
End at
Set current video time as end time
Share this media via Email
Share by email
Loading
Related Media
Loading…
Copy link to share