I saw a post online awhile back mentioning that Python can be used for everything including for the web. Out of curiosity I started looking into this more and came across Brython. Brython is Python for the browser and allows you to replace JavaScript with Python 3. For more examples, be sure to check out the Brython website by clicking the image below:

Brython: Python for Client-Side Web Programming