A colonoscopy is a medical procedure used to examine the inside of the colon, also known as the large intestine…