Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove object
#4
Then I am guessing your equality is failing on line 28. From line 25 planner appears to be an iterable, maybe either a list or a tuple. But the equality is comparing the string from the input on line 26 to the iterable, which is never going to match.

Edit: If one of the items in the iterable is a string that is meant to match the input, you need to compare to that, not to the whole iterable.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Remove object - by jmf08 - Jan-16-2019, 03:40 AM
RE: Remove object - by ichabod801 - Jan-16-2019, 03:50 AM
RE: Remove object - by jmf08 - Jan-16-2019, 04:48 AM
RE: Remove object - by ichabod801 - Jan-16-2019, 03:49 PM
RE: Remove object - by jmf08 - Jan-17-2019, 01:25 PM
RE: Remove object - by ichabod801 - Jan-17-2019, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to destroy or remove object rendered with opengl from the screen? hsunteik 1 7,895 Apr-09-2017, 01:30 PM
Last Post: hsunteik

Forum Jump:

User Panel Messages

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