Modifying FunctionsModifying Functions

Let's revisit the example with the country information. What happens if the name parameter isn't found in the data?

Can we manage this problem? Absolutely, by implementing conditional statements!

As demonstrated, the error message in this updated format is more user-friendly. While there are many other potential errors and methods to handle them, they're outside the purview of this course.

Everything was clear?

Section 6. Chapter 9