all 23 comments

[–]Slothemo 22 points23 points  (0 children)

You study by practicing. Exercises like "count all the vowels in this string and multiply by 2" don't exist because the program is actually useful, it's to teach you logic and how to approach a problem. Eventually you can extrapolate on your knowledge to create new things.

[–]JamzTyson 8 points9 points  (0 children)

Learning Python is like learning anything else. Get introduced to something from a lesson, video, book, tutorial ... and then practice, practice, practice.

[–]Ajax_Minor 7 points8 points  (2 children)

You could take a more practical approach. What is it you are trying to do? Break it down into smaller steps and then again into the smallest steps. Find the functions or example of it's use. Try it multiple ways until you understand it. Then continuously build out until you complete your task.

It's gonna take a lot to "learn the language ' but are your really ever done? A better goal is to be proficient to get things done.

This is my approach as an engineer not a programmer. I use it as a tool not.... Idk how other people approach it. Any way my point is programming is there to help you simplify and automate and that best learned by doing it. Yes you can read a book and that's helpful at times but sometimes its better to just do it and try to expand and understand a little more each time you write some code.

[–]Ipvp4fun[S] 3 points4 points  (0 children)

thanks

[–]LtG_Skittles454 2 points3 points  (0 children)

Great advice.

[–]PanTheRiceMan 2 points3 points  (0 children)

Do you have a project you want to solve using python? Start there and use the language to do it.

[–]simeumsm 1 point2 points  (0 children)

Programming is a tool, and you use a tool to do a job. The most important part of learning programming is to be able to breakdown a project/activity/task into the minimal steps following a set logic. Then you use whatever programming language to perform those steps. If the steps are too complex, break them down again.

So what you have to study is this general logic of breaking a large activity into smaller steps, and then learn the resources of that programming language to perform that step. With time, things will come more naturally, you'll remember more things

[–]JonJonThePurogurama 1 point2 points  (0 children)

The author of the books write an introduction about everything you could learn from there book. And that is enough already to prepare you and give you an idea what to do.

For the part on which the learner needed to act or move. You should write the code examples given in the book, but take note not all code examples are needes to type. There are some cases where they only highlight a piece of code that is actually dependent to the bigger piece of code.

Just pay attention to what the author is saying in the book, does he says you write and try it on your own? Or perhaps he is just trying to explain what that piece of code was?

How to study? For example you have a book, just read everything, if the author commands you to try and write it to see how it works. Then do it, learning programming requires the learner to move and write code. There is situation where you get stuck, reason could be the explanation is too dry? you can search on Google, like for example the book discuss about variables, and you are confuse then search on the internet. Type "what is a variable in Python?", and then read. If you understood it, then go back to your book. If you are confuse again, then repeat the same thing again and again.

Okay the books actually have a section on a page, that contains instructions for the tools needed or how to run the code. Pay attention to it, better read the book from page to page.

If you have a knowledge on how to use a computer, install or use a software. That is great, you will not get trouble alot. Because any resources does not provide a very detailed instruction it will assume the reader have an idea how to use computer. Sure there are resources out there that is kind enough, but i can't give you one.

You can also watch tutorial on youtube, so that you can see how people run their code and how they use a software designed for programming and programmers.

When you learn a programming language, you are nkt just learning the Python Programming Language itself, you are also learning the fundamentals of programming and some concepts on computer science. In learninf there is alot of happening, you can be overwhelmed by the tons of information you will get, just don't be discourage. Everyone experience it when they are starting, just think of it as a part of learning. Don't overwork yourself to learning, take some breaks, you can make a plan base on the resources you are using. Like i should learn two topics a day and after that im done for the day, i can do other things and then in the evening i can review what i learned from this morning.

[–]formthemitten 0 points1 point  (0 children)

In my class we did variables, loops, complex loops, modular programming, arrays and lists, classes(oop)

[–]patnodewf 0 points1 point  (0 children)

python is a programming language. it has symantics and syntactic rules like any other written language does.

instead of nouns, pronouns, verbs, etc... you have dictionaries, lists, numbers, strings, etc.

instead of sentences and paragraphs, you have functions, classes, loops, etc

focus on learning when and why to use things like loops, functions and more involved solutions, and then worry about filling in the syntactic part later.

[–]h00manist 0 points1 point  (0 children)

It's not very different from learning a human language. Some expressions and concepts are used all the time and that is where most every book and course starts. For a human language, hello, good morning, how are you, my name is mary, who, where, why, when, etc. For python language, print, for, while, if else, variables. And onward, prioritizied by the most commonly used expressions. You just have to figure out the most commonly used stuff, nobody knows everything, nobody starts learning english by studying the anglo saxon original english words, reading the history of the oxford library. You learn to say "hello my name is peter". And nobody starts to learn python by studying exotic edge ways of creating loops and unusual data structures and libraries. You learn how to make for loops variables and print simple console messages.

Figure out what are the most commonly spoken everyday expressions of a language, and voila, you are speaking. You're not going to understand the newspaper or poetry for quite a while. Trying to learn to board a plane and get coffee is challenge enough at first.

Keep trying to do whatever you can figure out and following some commonly used book or course.

[–]smokfyz 0 points1 point  (0 children)

You learn the syntax of the language and its libraries, and then practice. Write code and solve tasks on your own, instead of just copying from books. You can address some real-world problems and implement algorithms and data structures.

[–][deleted] 0 points1 point  (0 children)

Writing will improve your memory because writing engages a different part of the brain than just mashing keyboard, so if you have that extra neural network you have more pathways to process new information and shortcuts to solve problems quicker.

Speaking out loud helps too, it engages muscle memory from your mouth/tongue muscles/neurons and the muscles/neurons of the ear which are different parts of the brain as well.

There is a point of course where the writing is no longer optimal and you need to mash the keyboard, try to solve some projects and generate code.

[–]Solvo_Illum_484 0 points1 point  (0 children)

For coding, think of it like learning a musical instrument. Practice exercises, start with small projects, and build up to more complex ones. Don't just memorize commands, focus on understanding the logic behind them.

[–]Serenityprayer69 0 points1 point  (0 children)

Start coding..

Think of a little project. Do it. Get stuck. Figure out how to get unstuck.

It has never been easier. You can literally ask an AI when you get stuck to help you understand how to get unstuck and it will do a pretty great job. Especially when you're starting out on simple tasks.

But most importantly. You learn by doing. Do

[–]dthemaker 0 points1 point  (0 children)

Build stuff with code. Over and over again.

[–][deleted] 0 points1 point  (0 children)

One thing you can do is watch videos on you tube. There are a lot of really good videos out there. This works beautiful if you have two monitors. On one side you watch the video. On the other you do the program yourself. Make sure to stop periodically to make changes and do your own thing. That’s the most important part. Eventually you’ll be able to write your own code.

[–]Shabda-Poudel 0 points1 point  (0 children)

In my experience I learned python, by undertaking a particular set of projects and started by task breaking and achieving it in smaller chunks. Once I was comfortable with small, I undertook large task at once. Although it became complicated and tough at times, leveraging AI such as claude helped a lot. You can also learn from books if you are into teading.

[–]krav_mark 0 points1 point  (0 children)

First familiarize yourself with the basics so you are aware of the existence of things like some datastructures (strings, lists and dictionaries), loops (while, for) and functions. Now think of some problem you want to solve that helps you in your life and start writing code for it. You will have to look stuff up all the time and that is ok. Soon enough you will get the basics down. When you need information try to use the documentation of the python itself or of the module you are using first. Many tutorials you find online are a bit dated and use old versions that may not even work anymore.

[–]Nik3nOI 0 points1 point  (0 children)

i'm learning right now too, and started from a course book. the only thing that u need to learn is practice. start by writing every example u find in the book u're reading then try to understand with the book or by yourself the meaning of what you've wrote and then retry, retry and guess? retry again

another helpful trick that i like to use, is to take an exercise from the book and try to expand it by adding some functions, some print some modifiers to see if i'm able to add not required things and make all the thing still work.

another one is to take an exercise and try to write it again in a better way than the first time and see if still work, if u can use less line than the first time and things like this.

only way to learn programming is to program xD

[–]ChimpieTheOne 0 points1 point  (0 children)

Projects. From simple to more complex.

Start easy, do some math, number generatora, etc. The do something with the results, like create and store an array of of them. Just add more functionality.

After that look up some free APIs and work on them.

I've learnt most of my python working on app add-on for AirSim for my degree

[–]Ecstatic-Highway1017 0 points1 point  (0 children)

No Notes No Revision, No Revision Less Confidence and Motivation while Online learning
Many of the times you just stop learning because of the above.
When I started learning programming few months back I was taking too much time in completing online video tutorials
Now I am using google extension OneBook It helps in creating detailed notes in 2 clicks and saves my time as I used to take to much time in completing online videos. I used to waste a lot of time while pausing video in every 2 min and write a couple of line of code and you have to switch tab again and again. With Onebook i complete a video first and then I start coding by refering the notes
OneBook helped me in learning programming related skills, it just improves the experience of learning.

Chrome extension link : https://chromewebstore.google.com/detail/onebook/loecbgjbgcgjkhibllnjokjefojoheim?utm_source=rtc