python only** define the following function: This function must set the value of a task in a checklist to True. It will accept two parameters: the checklist object to add to, and the name of the task...


python only**


define the following function:


This function must set the value of a task in a checklist to True. It will accept two parameters: the checklist object to add to, and the name of the task to mark as completed. In addition to changing the task value, it must return the (now modified) checklist object that it was given.


if the task name provided is not in the checklist, this function must print a specific message  and must return None.


Define completeTask with 2 parameters


Use def to define completeTask with 2 parameters






Use a return statement


Within the definition of completeTask with 2 parameters, use return _ in at least one place.






Do not use any kind of loop


Within the definition of completeTask with 2 parameters, do not use any kind of loop.





Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here