Python Find If Variable Is String A Primitive Data