mport pandas as pd
import xlsxwriter as xw
input_string = input("Enter a list numbers:")
data = input_string.split( )
print("user list is", data)
df = pd.DataFrame(data, columns=[0])
Left = df[0].str[:1]
print(Left)
# datatoexcel=pd.ExcelWriter("ben.xlsx",engine="xlsxWriter")
# data.to_excel(datatoexcel,sheet_name='sheet1')
# datatoexcel.save()
workbook = xw.workbook("assign.xlsx")
sheet = workbook.add_worksheet("project")
row = 0
column = 0
for item in data:
sheet.write(row, column, item)
row += 1
workbook.close( )