Why is Python the ideal language for beginners to learn?
Let's look at the main reasons:
• It's more accessible for a beginner, allowing you to focus on programming concepts and not language detail. Too many give up coding early on–Python makes this less likely
• It's very powerful–which means you can write any program you'll need and it scales well as you deal with more complex programs and larger data sets
• It's very broad–it has applications in very many fields and not just a narrow scope. It also has libraries for very many fields!
• As it's very popular, it has a large user-base which is very helpful, so you'll find a lot of resources (not just mine!) and a lot of help from the community
• It's a language that's still improving and progressing rapidly. Latest speed improvements is just one example
The main thing you're learning is programming, and not a programming language. The language itself is "just" a tool, but you don't want the tool to get in the way of learning, as would happen with some other languages.
Once you become proficient in programming in one language, it's easier to switch to/learn other languages
So my advice is, yes, start with Python and stick with it until you feel you're very proficient. If and when you need other languages, they'll be easier to learn then…
@peterdrake although this one is clearly **not** fixed in 3.10, or 3.11! Maybe in 3.12?! - Having said that, the missing comma only comes out in the one-liner version, and not if the generator is assigned to a variable name
But yes, error messages are not Python's strongest feature!
QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.