To check if a element in array is number or string in python code example Example: if string is in array python if item in my_list: # whatever