how to check it type is byte code example Example: how to check if string is in byte formate pythin isinstance(string, bytes)