input: Write a function to scrape photos and captions from a given website. The function should take a website URL as input, fetch the HTML content, parse it to extract photos and their captions, and print them out. If a photo does not have a caption, it should print "No caption".
  assert scrape_photos_and_captions('https://example.com/webpage3')=="""Photo: https://example.com/image1.jpg
  Caption: Example Caption 1
  Photo: https://example.com/image2.jpg
  No caption
  """
  assert scrape_photos_and_captions('https://example.com/webpage4')=="""Photo: https://example.com/image4.jpg
  Caption: Example Caption 4
  Photo: https://example.com/image5.jpg
  Caption: Example Caption 5
  """
  assert scrape_photos_and_captions('https://example.com/webpage5')=="""Photo: https://example.com/image6.jpg
  No caption
  Photo: https://example.com/image7.jpg
  Caption: Example Caption 7
  """
  assert scrape_photos_and_captions('https://example.com/webpage6')=="""Photo: https://example.com/image8.jpg
  Caption: Example Caption 8
  """
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_photos_and_captions(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      images = soup.find_all('img')
      result = ""
      for img in images:
          src = img.get('src')
          caption = img.find_next('figcaption')
          if caption:
              caption_text = caption.get_text(strip=True)
          else:
              caption_text = "No caption"
          result += f"Photo: {src}\nCaption: {caption_text}\n"
      return result