2 Answers
+ 3
Actually, JavaScript is best for web development. JavaScript is easy and fast. JavaScript is singleton. I always encourage you to use javascript instead of a python or other language. You can do many things with python.
+ 3
Lookup Brython. It is a replacement for JavaScript.
However, it cannot work on SL, you will have to run it on a computer (or another android app, if it exists)
EDIT:
Actually, I think you might be able to use brython even on sololearn, as long as your device is connected to internet.
Follow the instructions in their official website to learn it. Once done, you can host the file online and include it in HTML script tag.