Python is not only useful for scripts and data analysis—you can also use it to build websites and web applications. In this chapter, you’ll see how Python can:
- Respond to requests from a web browser
- Generate HTML pages dynamically
- Handle user input from forms
- Provide simple APIs
You’ll build up from a minimal web server to a very small but complete web application using Flask, a popular beginner‑friendly web framework.