Defining a Function to Add New Tasks in Python - To-Do List App - ProjectAI