input: Write a function to scrape photos and captions from a given website. The function should accept the URL of the website as an input and print the photo URLs and their corresponding captions.
  assert scrape_photos_and_captions('https://example.com/webpage')=="""Photo: https://example.com/image1.jpg
  Caption: A beautiful landscape
  
  Photo: https://example.com/image2.jpg
  No caption
  
  """
  assert scrape_photos_and_captions('https://another-example.com/webpage')=="""Photo: https://another-example.com/photo1.jpg
  Caption: A cute cat
  
  Photo: https://another-example.com/photo2.jpg
  No caption
  
  """
output: def scrape_photos_and_captions(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      
      photos_and_captions = ""
      
      for img in soup.find_all('img'):
          photo_url = img.get('src')
          caption = img.find_next('p')
          caption_text = caption.text if caption else "No caption"
          
          photos_and_captions += f"Photo: {photo_url}\nCaption: {caption_text}\n\n"
      
      return photos_and_captions.strip()