How To Check If A Variable Has A Value Python