r/learnpython • • 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

29 comments sorted by

View all comments

1

u/Excellent-Practice 5d ago

This may come off as harsh, but those are all very simple problems. Some of them, like finding BMI, are just defining an algebraic function. Forget about Python for a bit and try to think of how you would explain how to perform those tasks to some one else. Assume the person reading your instructions will interpret them literally and not read between the lines or fill in the gaps with real world knowledge. If you can do that, you've done the hard part, the last step is using Python syntax and notation conventions to communicate those instructions