title: How to calculate percentage of green and the percentage of blue in the images, array already made, for loop reading the image file
body: <p>So I have already been able to read the file and produce an array.  I'm struggling finding ways to find the percent of green and blue in an image. </p>
  
  <pre><code>#Import Libraries 
  
  import matplotlib.pyplot as plt
  import matplotlib.image as mpimg
  import numpy as np
  from PIL import Image
  import glob
  
  #option comd c and then cmd v to paste path /Users/Gilly/Desktop/Comp 180/images
  #2 Reads the image of a sunset into an array LOOP
  
  list_files=glob.glob("/Users/Gilly/Desktop/Comp 180/images/*.jpg")
  
  for i in list_files:
      img = mpimg.imread(i)
      print(img)
  
  #Plots the image from the array data 
  
  for i in list_files:
      imgplot = plt.imshow(img)
      plt.show()
  
  #Calculate % of Green and Blue in the images 
  </code></pre>