KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Whats the difference between raising an exception and simply printing an error. For example, whats the benefit of using the following: if size < 0: raise ValueError('number must be non-negative') instead of simply: if size < 0: print 'number must be non-negative' I'm a newbie, please take it easy on me. :)
Tags (comma-separated)
Save Edits
Cancel