Introduction
Routing tells Flask what to do when someone visits a web address. It connects web addresses to the right code to run.
When you want to show different pages on your website.
When you want to handle user actions like clicking buttons or submitting forms.
When you want to organize your website so each URL does something specific.
When you want to build an API that responds to different web requests.
When you want to control what content users see based on the URL they visit.