Full AWS Practitioner Certification Question

You're coding in Python with GitHub Copilot enabled in your IDE. As you type, Copilot suggests snippets. How does it process your input and generate suggestions?