Answers for "Python List count() example"

1

Python List count() example

colors = ['red', 'green', 'blue', 'orange','blue']
color_count = colors.count('blue')
print('The count of color: blue is ', color_count)
Posted by: Guest on April-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language