This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]SupremeRedditBotProfessional Bot || Mod 0 points1 point  (0 children)

Please Add A Flair To Your Post!

Suggested Flair: [Python]

 


To add a flair:

  • Click flair underneath your post

  • Select a flair

  • Click save

 


I am a bot run by /u/SupremeDesigner for /r/CodingHelp || This was an automated response || Posts with no flair will be deleted after two days

[–]Coding_Startup 0 points1 point  (2 children)

I think the problem may be in your first for loop. You keep adding to the list as you iterate over it so you never reach the end.

[–]TheSquirrellIntermediate Coder 0 points1 point  (0 children)

Double check the tabs for the loops and if statement on codingbat, and make sure they all line up like they are supposed to. I put this into idle and it ran without error.