What is the purpose of the inner for loop in the following f…
What is the purpose of the inner for loop in the following function? def mystrFunc(img): w, h = img.size newImage = Image.new(‘RGB’, img.size) pixels = newImage.load() for x in range(w): for y in range(h): pixels[w-x-1, y] = img.getpixel((x,y)) return(newImage)
Read Details