We'll tackle this one the other way around. So let's create our submission script first. You can download the script here: JobArray.qsub.sh
The only special thing here is that we'll be passing the array id (so the number of the job in the array) to our Python script.