Ad
  • Default User Avatar
    1. spoiler flag, please, when you post code
    2. you have a traceback in the error message. You have to learn to use it.
    3. print is your friend, so that you can see what is the state of different variables in your code, at different times.