Python Forum
How to detect and tell user that no matches were found in a list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to detect and tell user that no matches were found in a list
#4
Which tutorial are you using? Your names are extremely un-Pythonic - (and over-long)

Lines 12- must be moved out of the loop; first condition in line 12 then will be redundant
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
RE: How to detect and tell user that no matches were found in a list - by volcano63 - Jul-17-2018, 08:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  user input values into list of lists tauros73 3 1,113 Dec-29-2022, 05:54 PM
Last Post: deanhystad
  detect equal sequences in list flash77 17 3,052 Oct-28-2022, 06:38 AM
Last Post: flash77
  functional LEDs in an array or list? // RPi user Doczu 5 1,711 Aug-23-2022, 05:37 PM
Last Post: Yoriz
  Split string using variable found in a list japo85 2 1,348 Jul-11-2022, 08:52 AM
Last Post: japo85
  Looking for a way to loop until user enters from a list? PythonW19 7 3,470 Mar-21-2021, 08:56 PM
Last Post: PythonW19
  User input/picking from a list AnunnakiKungFu 2 2,374 Feb-27-2021, 12:10 AM
Last Post: BashBedlam
Question Reset list if user regrets Gilush 1 2,110 Dec-05-2020, 10:55 AM
Last Post: Gilush
  How can I found how many numbers are there in a Collatz Sequence that I found? cananb 2 2,591 Nov-23-2020, 05:15 PM
Last Post: cananb
  delete a Python object that matches an atribute portafreak 2 2,226 Feb-19-2020, 12:48 PM
Last Post: portafreak
  Help with calling list from user input farispython 5 2,891 Nov-03-2019, 03:13 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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