As a general-purpose language, Python can be used for a variety of web development purposes. Primarily, it's used to code back-end utility components of a website while HTML or JavaScript are used to code front-end components like the user interface.