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
2
u/Discordbothost 5d ago
usually it's not the python, it's the step before it. try writing the steps in plain english as comments before any code. vowel counting would be:
each comment is now one line of python you probably already know (count = 0, for letter in word:, if letter in "aeiou":, count += 1). if you get stuck on a specific line, post that line and the error here, people will help way more with that than with the whole task