Python Forum
My code is not working as I expected and I don't know why!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My code is not working as I expected and I don't know why!
#5
Maybe that was the purpose of the exercise, to point out the dangers of modifying an iterable in a for loop.
Reply


Messages In This Thread
RE: My code is not working as I expected and I don't know why! - by deanhystad - Oct-13-2022, 08:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python trivial endgame engine is not working as expected max22 0 609 Feb-24-2024, 04:41 PM
Last Post: max22
  Simple conditional not working as expected return2sender 8 1,106 Aug-27-2023, 10:39 PM
Last Post: return2sender
  New to Python - Not sure why this code isn't working - Any help appreciated TheGreatNinx 4 1,068 Jul-22-2023, 10:21 PM
Last Post: Pedroski55
  code not working when executed from flask app ThomasDC 1 1,016 Jul-18-2023, 07:16 AM
Last Post: ThomasDC
  Custom method to handle exceptions not working as expected gradlon93 3 1,117 Dec-22-2022, 07:12 PM
Last Post: deanhystad
  I am new to python and Could someone please explain how this below code is working? kartheekdas 2 1,102 Dec-19-2022, 05:24 PM
Last Post: kartheekdas
  My Code isn't working... End3r 4 2,040 Mar-21-2022, 10:12 AM
Last Post: End3r
  set and sorted, not working how expected! wtr 2 1,365 Jan-07-2022, 04:53 PM
Last Post: bowlofred
  I don't undestand why my code isn't working. RuyCab 2 2,054 Jun-17-2021, 03:06 PM
Last Post: RuyCab
  code is not working , can anybody help? RandomPerson69 4 3,018 Mar-22-2021, 04:24 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020