(data)
return str(data)
Returns an encoded string that can be stored in the database.

        Raises:
            ValueError: If the value is not an integer.
Returns an encoded string that can be stored in the database.
Returns an encoded string that can be stored in the database .
def encode(data):
        """Returns an encoded string that can be stored in the database.

        Raises:
            ValueError: If the value is not an integer.
        """
        if not isinstance(data, int):
            raise ValueError('Data is not an integer.')

        return str(data)
def encode ( data ) : if not isinstance ( data , int ) : raise ValueError ( 'Data is not an integer.' ) return str ( data )