The last change Rahul wants to do in his code is to log the keys which have been processed by the program, irrespective of errors. He has created a log_completed()
function for the same which will log the key pressed by the user.
Help him change the program, adding a finally
block and calling log_completed()
within it. Pass the key to log_completed()
.