avatar Bite 212. Suppressing exceptions

Ever wanted to suppress an exception? Check out Python's contextlib module.

In this Bite you refactor sum_numbers which has some nested try/except statements. Use suppress to make this logic cleaner/ more readable. Have fun and keep calm and code in Python!

Login and get coding
go back Intermediate level
Bitecoin 3X

218 out of 219 users completed this Bite.
Will you be the 219th person to crack this Bite?
Resolution time: ~26 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 2.82 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help