I know I’m two months late, but if you’re still set to using Python with your HTML/CSS website, it is completely doable . However, as the previous answer mentioned, if it is only for calculations and light functionality, you’re better off using javascript.