What is flask and how is it used?
Flask is a lightweight web application framework for Python that allows you to quickly build web applications. It provides tools and libraries for route handling, request processing, and response generation. Flask is used to create web applications, APIs, and other web services by defining routes, views, and templates to handle different HTTP requests.