https://mysteryweevil.medium.com/master-the-power-of-loops-for-efficient-web-development-in-python-92f4a58c660b