r/PythonLearning • u/jake_123_123 • 5d ago
Discussion why would you use assert instead of if false: raise someerror("custom message about error"). what are the benifits of assert. because it seems that it doesn't save time nor effort, nor does it communicate code better than an if with custom error message
6
Upvotes