Python Function Multiple Input Monitor