r/learnpython • • 1h ago

Learning programming

I’m learning programming for college for a cybersecurity degree. I need to make my own program that works(in Python). I have my different options i .e. lists all laid out. I wrote a flowchart and pseudo (both required for the project) as I’m coding everything one of the lists is getting skipped entirely if the user enters yes instead of no. And if the user enters no it gives them the code of them dying but instead of stopping the loop entirely it reloops the code again and still skips one of the lists. I’m not quite sure the best way to fix this. The lists are all the same length, in brackets and spelled out properly. Any suggestions or help would be appreciated.

2 Upvotes

3 comments sorted by

•

u/smichaele 56m ago

You're not going to get any suggestions unless you share your code.

•

u/p186 52m ago

Beat me to it. ☺️

•

u/p186 52m ago

Not knowing the code, make sure you have a way of ending a loop and then that decision the user makes should update that condition to trigger the loop to be invalid/stop. You probably already know this.

I need some caffeine, so I’m not able to assess the issue without the code. Not sure how many files the program has but if you have it in a public git repo, link to that or paste the relevant file code into pastebin & share the link. That way we can look at it.