Write a function, * * tables _ _ ready * , * , which accepts as parameters
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a function, *tables_ready*, which accepts as parameters a dictionary, *bookings* and an integer, *number_of_tables*, in that order. *number_of_tables* indicates the number of table available to be filled. The function should return the name of the most appropriate person to call. The most appropriate person to call is always the one with the lowest booking reference whose party is complete and who needs no more than the number of tables available. If there is no suitable person to call, then the function should return an empty string. For the purposes of this question you should ignore the requested table number. You can also assume that all entries for a given name will have the same party complete value and that all given names are unique (this is a simplification; the module team is aware that all given names may not be unique). In the example below all Howson's are incomplete, all Hackett's are complete.
Related Book For
Posted Date: