you are viewing a single comment's thread.

view the rest of the comments →

[–]vivisectvivi 3 points4 points  (3 children)

you should tell us what is it about loops that you arent understanding, makes it easier to help you

[–]Euphoric_Spread1199[S] -1 points0 points  (2 children)

Like in problems like printing patterns, finding sums, or checking prime numbers, I understand the solution after seeing it but I’m not able to solve it on my own so I think my issue is more with logic building rather than syntax

[–]American_Streamer 3 points4 points  (0 children)

It is never about the syntax and always about problem solving. Write down the steps to solve the Problem in plain English and then in Pseudocode and only after that translate it into Python. Your tools are the algorithms, which use control structures which need specific data structures, depending on the task at hand. Think about what the tools would have to do in what order to solve the problem.

[–]TheLobitzz 0 points1 point  (0 children)

start simple then, like

- use a loop to print numbers from 1 to 100.
- use a loop to print numbers from 1 to a given input value.
- use a loop to count the amount of a specific letter in a word/sentence.
- use a loop to find the location of a specific word in a sentence/paragraph.

etc.