There’s no such thing as a single best language for LMS software development. Python, Java, Ruby, or even PHP are all a solid choice for an LMS backend (as long as the language satisfies your requirements).
At MindK, we prefer JavaScript. By using React on the frontend and Node.js on the backend, you can have a single developer maintaining the entire LMS. Both technologies are mature, flexible, and have high performance.