Python Check If Variable Is Not A Number