I remember telling people to read "The Python Tutorial" on python.org , if they wanted to write Python. It takes a few hours for an experienced programer, and a couple of days for a beginner. People had difficulty starting.
I wonder whether a "richer" editor/IDE, that flags such things immediately upon writing them, could greatly improve the learning experience.
Many tools even point out things such as non-existing variables in scope, which are not strictly "errors" in a dynamic language during edit time.
Just want to emphasize that first part; I've seen the second in new hires who passed a coding bootcamp, and it's really weird to watch. One of them even had to see the error message and go back to the code and still puzzle over it for several seconds before realizing what was wrong.