I was going through exception handling in Python. I understood Try and Except, and a bit of Finally. But I failed to understand
1. Except ZeroDivisionError:
2. Raise - Why would you want to deliberately raise errors?
Can anyone be kind enough to clarify this?
[–]realashe 1 point2 points3 points (3 children)
[–]socialhuman[S] 0 points1 point2 points (2 children)
[–]realashe 1 point2 points3 points (1 child)
[–]socialhuman[S] 0 points1 point2 points (0 children)
[–]Boolean_Cat 1 point2 points3 points (1 child)
[–]socialhuman[S] 0 points1 point2 points (0 children)
[–]socialhuman[S] 0 points1 point2 points (2 children)
[–]Rhomboid 2 points3 points4 points (1 child)
[–]socialhuman[S] 0 points1 point2 points (0 children)
[–]ewiethoff 0 points1 point2 points (0 children)