how to check if element are string or number python code example Example: if type is string python isinstance(s, str)