Python Check String In An Array Of Numbers