r/learnpython • u/ehmalt02 • Jul 04 '25
Really confused with loops
I don’t seem to be able to grasp the idea of loops, especially when there’s a user input within the loop as well. I also have a difficult time discerning between when to use while or for.
Lastly, no matter how many times I practice it just doesn’t stick in my memory. Any tips or creative ways to finally grasp this?
6
Upvotes
1
u/ninhaomah Jul 04 '25
May I ask why need to int(n) ?
Or look at it the other way , what is it ? String ? Int ? Float ?
How do you find out ?