Once you are in the AWS console you need to navigate to AWS Cloud9 which is a cloud-based integrated development environment (IDE) that lets you write, run and debug your code with just a browser. It comes prepackaged with essential tools including python.
LearnPython
Next
The default settings are eligible as a free tier service.
Create environment