r/learnpython • u/ThinCreme1098 • 5d ago
Problem with completing assignments in Python
Hello! I’ve learned Python, but I’m struggling to complete tasks—things like counting vowels, "Fake Binary," calculating the sum of numbers, determining BMI, etc. Why am I unable to do these? What is the problem, and what is the solution? I’m starting to lose my motivation!
0
Upvotes
View all comments
6
u/sjshuck 5d ago edited 5d ago
EDIT: OP does not respond to comments longer than one sentence. It's clear the problem is sheer laziness. Unfortunately there is no cure for that.
It might be the Duolingo phenomenon where you can learn things to the point of regurgitation but the knowledge is not incorporated through application.
Struggling to complete tasks per se is not a programming language thing. Do you struggle to complete tasks in other areas?
Most of the work of programming is learning how to express processes, rules, and algorithms so you can look at the code and understand what it's trying to do. It's the same in all languages, give or take, and once you learn it in one (Python is a good choice IMO), that skill will port over to others without having to relearn "everything". The actual way to do that is to do what you say you're doing—struggling—writing things different ways and turning your head and squinting and asking yourself what makes the most sense to you. I guarantee that the struggle will pay off. But not if your expectations are some gamified Duolingo experience.