October 28, 2020 at 12:00 am
Comments posted to this topic are about the item How Long is the List?
October 28, 2020 at 10:53 am
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
October 28, 2020 at 12:33 pm
https://www.tutorialgateway.org/python-count-list-items/
suggests:
list_name.count(list_item)
October 28, 2020 at 1:32 pm
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
Change is inevitable... Change for the better is not.
October 28, 2020 at 3:03 pm
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