We'll look at how else you can code with Range Engine/UPBGE.
Open up the engine, create a new panel by dragging or switch the editor type by clicking
on the editor type and clicking Text Editor or just press
Shift + F11.
Create a new text file by clicking on
the "+" icon or hover your mouse on the text editor and press
Ctrl + N.
That is where you starting writing your python code.
Pros
Cons
Open up notepad, vscodium (vscode if don't care about privacy), sublime-text or any other text editor or an IDE, create a new .py file and save it. Open up the engine and open up the text editor, click on the folder icon and open the file which you saved using the text editor. Or you can do that with logic brick without opening your text file just by specifying your code name and module name.
Pros
For vscode and vscodium, Range API autocomplete is available allowing users to write code faster.
Cons