The quickest way to get started with the basics is to get an API key from either OpenAI or Azure OpenAI and to run one of the Java console applications/scripts below ...
Here in this article, detailed guide are well written - https://threshhold.pythonanywhere.com/post/convert-pygame-code-to-android-apk-2f2cf8cd1802 pygame car game apk ...