sheets can be added to and removed from workbook with the create_sheet(method and del operator enter the following into the interactive shellimport openpyxl wb openpyxl workbook(wb sheetnames ['sheet'wb create_sheet(add new sheet wb sheetnames ['sheet''sheet 'create new sheet at index wb create_sheet(index= title='first sheet'wb sheetnames ['first sheet''sheet''sheet 'wb create_sheet(index= title='middle sheet'wb sheetnames ['first sheet''sheet''middle sheet''sheet 'the create_sheet(method returns new worksheet object named sheetxwhich by default is set to be the last sheet in the workbook optionallythe index and name of the new sheet can be specified with the index and title keyword arguments continue the previous example by entering the followingwb sheetnames ['first sheet''sheet''middle sheet''sheet 'del wb['middle sheet'del wb['sheet 'wb sheetnames ['first sheet''sheet'you can use the del operator to delete sheet from workbookjust like you can use it to delete key-value pair from dictionary remember to call the save(method to save the changes after adding sheets to or removing sheets from the workbook writing values to cells writing values to cells is much like writing values to keys in dictionary enter this into the interactive shellimport openpyxl wb openpyxl workbook(sheet wb['sheet'sheet[' ''helloworld!edit the cell' value sheet[' 'value 'helloworld!