Python Forum
Selecting the first occurrence of a duplicate
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting the first occurrence of a duplicate
#4
I wasn't suggesting that you use prices[1], I was just showing that prices can be indexed.
you can find out how many prices there are with the len function: numprices = len(prices)
Reply


Messages In This Thread
RE: Selecting the first occurrence of a duplicate - by Larz60+ - May-23-2021, 11:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get unique entries in a list and the count of occurrence james2009 5 4,122 May-08-2022, 04:34 AM
Last Post: ndc85430
  Selecting text as an input lazerwolf101 2 2,902 May-29-2020, 06:52 AM
Last Post: lazerwolf101
  Checking for one or more occurrence in a list menator01 3 3,378 May-18-2020, 06:44 AM
Last Post: DPaul
  count occurrence of numbers in a sequence and return corresponding value python_newbie09 6 5,220 May-20-2019, 06:33 PM
Last Post: python_newbie09
  selecting a module at run time Skaperen 1 2,799 Jun-23-2018, 01:37 PM
Last Post: gontajones
  Word co-occurrence matrix for a string (NLP) JoeB 2 12,375 Feb-27-2018, 11:21 PM
Last Post: Larz60+
  Maximum Occurrence Letter GalaxyCR 2 4,638 Nov-27-2017, 09:00 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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