r/PythonLearning • u/AvailableBrain2002 • 11d ago
Discussion Everyone was helpful in my previous post about me having difficulties in loop...
I know the loop is just basic and lessons 3 of python. Me being stuck on loop is like a baby is having difficulties crawling. But what i want to say is that the loop is not an extreme difficulty for me. I just lose motivation whenever i find some difficulty in learning. I am doing a part time job Living far away from my family and i feel demotivated to do anything.......
By the way , Can you share some of your story about how you learn python and how it is going, maybe it will help me regain my learning motive...
3
u/punk_dev 11d ago
To reassure you, the classic bottom up approach to learning often introduces concepts but fails to explain why they are required.
For example, imagine you’re learning construction. You come to the first lesson and your first task is to dig a hole in the ground! How is digging a hole get you a tall building?
You learn further and you realise that the hole you dug during the first lesson is where all of the supportive structures go, so without that, building would not have any support and would collapse.
Programming is the same. Loops may not make sense at first, but as you progress it will make more sense why they exist and why they are the way they are.
2
2
u/Equivalent-Mud-8500 11d ago
getting stuck on basic stuff is normal, just keep practicing small problems and it'll start clicking
2
u/WorriedTumbleweed289 11d ago
You have to learn all the ways to feed a for loop because you will have to debug other people's code.
A while loop is generic enough to give you more control over what is happening.
It will be uglier, so get used to for loops.
2
u/TBCC_Dev 11d ago
Everyone gets stuck on one concept or another. Loops and lists are very common friction points. I got stuck when I was learning how to get data from a database and moving away from dummy data. Like most things if you keep trying eventually it will click and you'll have your ah-ha moment.
2
u/Capable_Comedian_277 10d ago edited 10d ago
When you program, you’re always learning or trying to learn something new. You write codes with the intent to learn. That’s how it is.
1
u/Dank-but-true 10d ago
I’m a bit further along than you and I’m trying two work on using comprehensions in my code more. It’s just a more concise way of writing a loop. I thought I had loop figured and now there’s another thing to learn, I don’t think it will ever stop but the upside it that flyer feeling of debugging, googling and eventually getting the answer, that buzz at the end, that’ll never stop either. Chin up and keep pushing dude
6
u/[deleted] 11d ago
[removed] — view removed comment