How Long is the List?

  • Comments posted to this topic are about the item How Long is the List?

  • Just a quick hint with the troublesome word "retriever":

    "I" before "E", except after "C".  '

    You never know: reading my book: "All about your computer" might just tell you something you never knew!
    lulu.com/kaspencer

  • https://www.tutorialgateway.org/python-count-list-items/

    suggests:

    list_name.count(list_item)

     

  • Heh... I don't know much about JSON but that's pretty counter intuitive of the language.

    Also, I don't know why people are giving this question a low rating.  It seems straight forward enough.  Anyone that gave it a low rating care to explain?  I'm always interested in such thing.

     

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • dplaut 49149 wrote:

    https://www.tutorialgateway.org/python-count-list-items/

    suggests:

    list_name.count(list_item)

    This method is slightly different. It is intended to count occurrences of an item within a list. For example, if I needed to count how many times the element "Golden Retriever" appeared in the list, I could execute the following:

    dog_breeds.count("Golden Retriever")

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply