Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find index value in List
#4
What is your expected return value for test.index("758")? I'm sure you can write a function that returns the desired value, but what is the desired value in this case? 1? 4? (1, 0)?
Reply


Messages In This Thread
Find index value in List - by Martin2998 - May-12-2020, 11:45 AM
RE: Find index value in List - by anbu23 - May-12-2020, 12:47 PM
RE: Find index value in List - by DeaD_EyE - May-12-2020, 12:55 PM
RE: Find index value in List - by deanhystad - May-12-2020, 02:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Find Common Elements in 2 list quest 4 287 Apr-14-2021, 03:57 PM
Last Post: quest
  IndexError: list index out of range brunolelli 11 553 Mar-25-2021, 11:36 PM
Last Post: brunolelli
  Changing Index of 2 List in python giddyhead 0 222 Mar-05-2021, 05:45 PM
Last Post: giddyhead
  IndexError: list index out of range ramu4651 2 423 Jan-24-2021, 01:45 PM
Last Post: buran
  List of error codes to find (and count) in all files in a directory tester_V 8 598 Dec-11-2020, 07:07 PM
Last Post: tester_V
  Find _ in a list 1234 15 947 Dec-01-2020, 07:53 PM
Last Post: bowlofred
Question Matching variable to a list index Gilush 17 845 Nov-30-2020, 01:06 AM
Last Post: Larz60+
  How to get index of minimum element between 3 & 8 in list Mekala 2 390 Nov-10-2020, 12:56 PM
Last Post: DeaD_EyE
  List index out of range error while accessing 2 lists in python K11 2 505 Sep-29-2020, 05:24 AM
Last Post: K11
  str.find() not returning correct index. DreamingInsanity 10 994 Aug-18-2020, 05:41 PM
Last Post: DreamingInsanity

Forum Jump:

User Panel Messages

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