import matplotlib.pyplot as plt
# Create a new list
list_colours_02 = ["red","yellow","yellow","green","red","red"]
print(list_colours_02)
# Create a histogram of the list of numbers
plt.hist(x = list_colours_02)
plt.show()
['red', 'yellow', 'yellow', 'green', 'red', 'red']