original_docstring: 
      A photo is displayed. The function is called and the rgb values for each /
      pixel is printed. ...
      ex:
      photo facing left, creates photo facing right
  
      'Written by Emilio Lindia: 101143244'
  
      DOCSTRING TESTING (How to run the code)
      Code is run
      File explorer appears
      Choose a file, an image you wish to flip
      Image will appear when opened
      Close the image
      The height and width of this image is recorded and the rgb values for each
      pixel are changed
      New flipped image is returned with changed applied to it
      Close the new image
      END OF CODE
  
  
      CODE HAS BEEN ATTRIBUTED FROM GIVEN FILES FOUND ON CULEARN
      
docstring: A photo is displayed. The function is called and the rgb values for each
  pixel is printed.
  ex:
  photo facing left, creates photo facing right
  
  
  
  DOCSTRING TESTING (How to run the code)
  Code is run
  File explorer appears
  Choose a file, an image you wish to flip
  Image will appear when opened
  Close the image
  The height and width of this image is recorded and the rgb values for each
  pixel are changed
  New flipped image is returned with changed applied to it
  Close the new image
  END OF CODE
  
  CODE HAS BEEN ATTRIBUTED FROM GIVEN FILES FOUND ON CULEARN
docstring_tokens: A photo is displayed . The function is called and the rgb values for each pixel is printed . ex : photo facing left creates photo facing right DOCSTRING TESTING ( How to run the code ) Code is run File explorer appears Choose a file an image you wish to flip Image will appear when opened Close the image The height and width of this image is recorded and the rgb values for each pixel are changed New flipped image is returned with changed applied to it Close the new image END OF CODE CODE HAS BEEN ATTRIBUTED FROM GIVEN FILES FOUND ON CULEARN
code: def flip_vertical( img ):
      """
      A photo is displayed. The function is called and the rgb values for each /
      pixel is printed. ...
      ex:
      photo facing left, creates photo facing right
  
      'Written by Emilio Lindia: 101143244'
  
      DOCSTRING TESTING (How to run the code)
      Code is run
      File explorer appears
      Choose a file, an image you wish to flip
      Image will appear when opened
      Close the image
      The height and width of this image is recorded and the rgb values for each
      pixel are changed
      New flipped image is returned with changed applied to it
      Close the new image
      END OF CODE
  
  
      CODE HAS BEEN ATTRIBUTED FROM GIVEN FILES FOUND ON CULEARN
      """
      show(img)
      image = copy(img)  # Creates the copy to prevent it from/
      # Being overwritten
  
      h = get_height(image)  # Interprets the height of the image
  
      w = get_width(image)  # Interprets the width of the image
  
      new_image = create_image(w, h)  # Creates an image with the same values/
      # As h,w
  
      # (Essentially creating an image of the/
      # Same dimensions)
  
      for pixel in image:  # Examines all pixels in the new image
          x, y, (r, g, b) = pixel
          # Print(r,g,b)                    #Prints the r g b values of every pixel
          new_color = create_color(r, g, b)
          set_color(new_image, w - x - 1, y - 1, new_color)
      show(new_image)
      return new_image
code_tokens: def flip_vertical ( img ) : show ( img ) image = copy ( img ) h = get_height ( image ) w = get_width ( image ) new_image = create_image ( w , h ) for pixel in image : x , y , ( r , g , b ) = pixel new_color = create_color ( r , g , b ) set_color ( new_image , w - x - 1 , y - 1 , new_color ) show ( new_image ) return new_image
short_docstring: A photo is displayed.
short_docstring_tokens: A photo is displayed .
comment: """
      A photo is displayed. The function is called and the rgb values for each /
      pixel is printed. ...
      ex:
      photo facing left, creates photo facing right
  
      'Written by Emilio Lindia: 101143244'
  
      DOCSTRING TESTING (How to run the code)
      Code is run
      File explorer appears
      Choose a file, an image you wish to flip
      Image will appear when opened
      Close the image
      The height and width of this image is recorded and the rgb values for each
      pixel are changed
      New flipped image is returned with changed applied to it
      Close the new image
      END OF CODE
  
  
      CODE HAS BEEN ATTRIBUTED FROM GIVEN FILES FOUND ON CULEARN
      """$SEP$# Creates the copy to prevent it from/$SEP$# Being overwritten$SEP$# Interprets the height of the image$SEP$# Interprets the width of the image$SEP$# Creates an image with the same values/$SEP$# As h,w$SEP$# (Essentially creating an image of the/$SEP$# Same dimensions)$SEP$# Examines all pixels in the new image$SEP$# Print(r,g,b)                    #Prints the r g b values of every pixel