Challenge: Bugs and Exceptions in the Code

Solve the challenge to check your understanding of finding bugs and handling exceptions in code.

We'll cover the following

Task 1


The code below is in the Python language and has a bug. Your task is to find the bug and correct it to get the desired output.

Get hands-on with 1200+ tech skills courses.