How To Check If An Input Is A Whole Number In Python