Python Forum
Removing items in a list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing items in a list
#2
On line 13 you are checking the value of first.lower(). Look at your logic again and make sure that is the variable you want to check at that point. Also, consider what happens on line 11 if a user entered "q" on line 10.
Reply


Messages In This Thread
Removing items in a list - by cap510 - Nov-01-2020, 09:19 PM
RE: Removing items in a list - by GOTO10 - Nov-01-2020, 09:38 PM
RE: Removing items in a list - by cap510 - Nov-01-2020, 09:53 PM
RE: Removing items in a list - by Larz60+ - Nov-01-2020, 09:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to parse and group hierarchical list items from an unindented string in Python? ann23fr 1 519 May-23-2024, 05:39 AM
Last Post: Pedroski55
  Removing all strings in a list that are of x length Bruizeh 5 3,349 Aug-27-2021, 03:11 AM
Last Post: naughtyCat
  Removing existing tuples from a list of tuple Bruizeh 4 2,913 May-15-2021, 07:14 PM
Last Post: deanhystad
  Collisions for items in a list Idents 3 2,413 Apr-06-2021, 03:48 PM
Last Post: deanhystad
  Help with Recursive solution,list items gianniskampanakis 8 3,771 Feb-28-2020, 03:36 PM
Last Post: gianniskampanakis
  Removing items from list slackerman73 8 4,588 Dec-13-2019, 05:39 PM
Last Post: Clunk_Head
  Find 'greater than' items in list johneven 2 4,562 Apr-05-2019, 07:22 AM
Last Post: perfringo
  How to add items within a list Mrocks22 2 2,765 Nov-01-2018, 08:46 PM
Last Post: Mrocks22
  How to keep duplicates and remove all other items in list? student8 1 5,047 Oct-28-2017, 05:52 AM
Last Post: heiner55
  need help removing an item from a list jhenry 4 4,282 Oct-13-2017, 08:15 AM
Last Post: buran

Forum Jump:

User Panel Messages

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