Help with loop/indention/logic Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help with loop/indention/logic Python

https://code.sololearn.com/ca24a21a20a2/?ref=app So I’ve been working on the code It’s for an assignment in my python class There’s still a few kinks I can’t quite work out that I displayed in ##comments If you get a chance to look I’d really appreciate any help

12th Feb 2021, 9:24 PM
Gutz_X_73vEn
Gutz_X_73vEn - avatar
2 Answers
+ 2
thanks Wilbur you were right i got it all squared away it was definately a good assignment to learn how loops should be used it makes much better sense to me now
14th Feb 2021, 2:30 AM
Gutz_X_73vEn
Gutz_X_73vEn - avatar
+ 1
I looked at the code a little, and this seems like a pretty simple misordering of the loop logic, such as misplacing if statements inside one loop when they should be inside another, or even having the loop check the wrong thing for why it should keep circulating. however, if it’s a school project, I’m not sure I can help you much. my biggest recommendation is that you just read through the code yourself, and try to follow the logic of the computer. like I said, the first few mistakes were pretty simple.
14th Feb 2021, 1:37 AM
Wilbur Jaywright
Wilbur Jaywright - avatar