Why are we using "as" followed by err?
My code is working perfectly fine without it, even when presented with a ValueError. Adding this detail doesn't seem to change a single thing for me. I just don't get the point, can someone explain?
The as keyword is used to create an alias.
We give that ValueError the alias of err and then use it if we want to print that error out.
Please correct me if I'm wrong.