I have made the following code on python 3.7 to delete column from excel
import openpyxl
from openpyxl import load_workbook
path=r'path\SAMPLE_TASK.xlsx'
wb=openpyxl.load_workbook(path)
ws=wb.active
a=int(input("Enter Column: "))
ws.delete_cols(a)
wb.save(path)
I am able to enter integer in a as input and delete a column But how do I use the column name to delete for example is instead of column 1 I need to enter 'A' column or is my column has a title 'Address; then if i enter "address' as user input it should delete that column Also how can i delete multiple columns