Q:

Python file opens up in browser window instead of download prompt

I am trying to make files downloadable from my website, but when I test it by clicking on the download file, it opens up the code in a webpage, instead of downloading it. I'm using Firefox, by the way.
<a href="currentage.py">Age calculator I made, where you plug in your birth year.</a>

I know I'm probably doing something very stupid, but the tutorials told me to do this.

A:

IN HTML5 download will do the trick
<a href="currentage.py" download>Age calculator I made, where you plug in your birth year.</a>

