Using python, define the following function This function must return the task status for a particular task from a checklist. There's the possibility that the task specified is invalid (in this case,...




Using python, define the following function


This function must return the task status for a particular task from a checklist.


There's the possibility that the task specified is invalid (in this case, because it isn't in the checklist). In that case, taskStatus must print a specific message , and must return None.


Define taskStatus with 2 parameters


Use def to define taskStatus with 2 parameters






Use a return statement


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






Do not use any kind of loop


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








Example input:

In []: taskStatus({'Task 1':False,'Task 2':True},'Task 1')
Out[]: False




Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here