r/learnprogramming • u/Whole-Sheepherder538 • 22h ago
python
I think Python is a great programming language for beginners because it has simple syntax and is easy to understand.
Students should start by learning variables, data types, loops, functions, and basic algorithms. After that, they can practice by building small projects.
Python is also useful in many fields, such as Artificial Intelligence, Data Science, and Web Development.
Learning by doing real projects is one of the best ways to improve programming skills!
7
Upvotes
1
u/cyrixlord 15h ago
There is no magic bullet to learning and understanding code. It will take months of writing your own code before you gain understanding. Learning the syntax is just one small part. the real hard part is training your mind to being an investigator. gathering resources, and translating customer requirements into a project that can be broken down into logical pieces and developed. This skill will take years but the journey is worth it. You will need to debug thousands of lines of code that might not be yours. You might have to work on projects that you have no interest in.
1
u/pete_68 6h ago
I've been programming for 57 years. I'm not personally a huge fan of Python (it's fine, just not my favorite), but it's what I usually recommend to beginners. Its syntax is decent, it's modern and for a beginner, the fact that it's interpreted is a big help. Compilation is just an extra step and layer for noobs. So that's why I recommend Python to beginners.
0
u/Obfuscate_exe 15h ago
Python is good for beginners, but it does not expose you to many of the fundamental programming concepts that more traditional languages do. Especially now that AI is becoming increasingly prominent and programming languages are becoming another layer of abstraction, the incentive to use Python outside of fields like data science is diminishing. Python is one of the slowest mainstream languages due to its dynamic typing and interpreter overhead, and arguably its biggest advantage, simplicity and ease of development, becomes less relevant when most of the code is going to be generated by AI anyway. This will likely become even more apparent in the future.
0
u/kigory2 15h ago
it's useful you have to learn it but it's bad slow and weird fucking stupid if you want something simple pick golang or javascript
0
u/edwbuck 15h ago
You are a fanboy, not in the negative sense, but in the sense that you are primarily promoting a single thing.
Everything you said about Python is generally true for nearly every popular programming language, and there at flaws in all programming languages, for example Python's "slice" handling of array elements is only "simple syntax" in typing the characters, but is not "simple syntax" in getting the slices to work how you want them, and they avoid a clean syntax detailing if you are reusing ram or using new ram.
Basic algorithms are basic because they exist in every language.
Personally, the highest performance web sites are not written in Python. It's generally Java, with Rust doing some of the simpler sites. Multi-threading and sophisticated memory page handling matters at the top end, and Python has a history of being first to the simple solutions, and late to the truly high performance ones. And example? It's great at data science until you have too much data to store on a computer. Then you need Apache Spark, which has Python bindings, but is actually implemented in Scala (a Java derivative) and runs much faster when called by Java or Scala.
Don't get me wrong, there's plenty going for Python, but it's not the best fit for every scenario.
0
u/W31337 10h ago
Python is a fast, accessible and effective language but not a good one to learn proper programming, if that's what you really want to do.
Python is sloppy with data types (you don't have to specify them) so people can trial and error their way to a functioning piece of code without knowing what's exactly happening.
Because of the above (same for JavaScript) it's become popular because you can just do stupid shit and the compiler just grabs the apples and oranges and makes bananas...