old_contents: # This program uses the OpenPyXL module to manipulate Excel documents
  
  # Creating and Saving Excel Documents
  
  import openpyxl
  wb = openpyxl.Workbook()
  print(wb.get_sheet_names())
  sheet = wb.get_active_sheet()
  print(sheet.title)
  sheet.title = "Spam Bacon Eggs Sheet"
  print(wb.get_sheet_names())
  
  wb = openpyxl.load_workbook("example.xlsx")
  sheet = wb.get_active_sheet()
  sheet.title = "Spam Spam Spam"
  wb.save("example_copy.xlsx")
  
new_contents: # This program uses the OpenPyXL module to manipulate Excel documents
  
  # Creating and Saving Excel Documents
  
  import openpyxl
  wb = openpyxl.Workbook()
  print(wb.sheetnames)
  sheet = wb.active
  print(sheet.title)
  sheet.title = "Spam Bacon Eggs Sheet"
  print(wb.sheetnames)
  
  wb = openpyxl.load_workbook("example.xlsx")
  sheet = wb.active
  sheet.title = "Spam Spam Spam"
  wb.save("example_copy.xlsx")
  
subject: Update P03_writingExcel fixed warnings by changing depreciated methods