My experience with Python and Scala so far is different. With Python the LLM's do a pretty good job. The code always compiles, sometimes there are some logical or architectural errors but that's it.
With Scala, I have to give the LLM a super simple job, e.g. creating some mock data for a unit test, and even then it frequently screws up; every now and then it gives me code that doesn't even compile. So much for Scala's strong type system ..
Less training data for Scala is the issue probably. Imagine how much Python is out there.
I've been asking it to spit out python all day long and it just flies with it. Ask all the LLMs most of them will tell you Python is the top if not preferred language.