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