Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python List count() example

colors = ['red', 'green', 'blue', 'orange','blue']
color_count = colors.count('blue')
print('The count of color: blue is ', color_count)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #List
ADD COMMENT
Topic
Name
5+2 =