from aspose.cells import License, Workbook

#  For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
#  The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
try:
    #  Create a License object
    license = License()
    #  Set the license of Aspose.Cells to avoid the evaluation limitations
    license.set_license(dataDir + "Aspose.Cells.lic")
except Exception as ex:
    print(str(ex))
#  Instantiate a Workbook object that represents Excel file.
wb = Workbook()
#  When you create a new workbook, a default "Sheet1" is added to the workbook.
sheet = wb.worksheets[0]
#  Access the "A1" cell in the sheet.
cell = sheet.cells.get("A1")
#  Input the "Hello World!" text into the "A1" cell
cell.put_value("Hello World!")
#  Save the Excel file.
wb.save(dataDir + "MyBook_out.xlsx")