How to write ASSERT statements that IMPROVES the quality of your Python code

Published: 18 June 2023
on channel: Python for Everyone
198
10

Wouldn’t it be great if code had a checklist? You check all boxes and your new app is ready to ship! In this video, you learn how to add asserts to your code to make sure everything runs like clockwork!

C H A P T E R S
0:18 What does an assert look like?
1:05 Assertion Error Description
1:30 Invariants as preconditions
4:07 Class invariants
6:15 Finding bugs with asserts
7:45 Leave asserts in production code?
9:00 Asserts are disabled in release code

M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Try free chapters of online courses: https://pythonforeveryone.com

L I N K S I N T H E V I D E O
https://docs.python.org/3/library/con...

#assert #invariants #python


Watch video How to write ASSERT statements that IMPROVES the quality of your Python code online, duration hours minute second in high quality that is uploaded to the channel Python for Everyone 18 June 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 198 times and liked it 10 visitors.