def _pad(input):
 _len = len(input)
 if (_len == Card.length):
  return input
 elif (_len > Card.length):
  strlen = (_len % Card.length)
  if (strlen == 0):
   return input
  else:
   return (input + (' ' * (Card.length - strlen)))
 else:
  strlen = (_len % Card.length)
  return (input + (' ' * (Card.length - strlen)))

def _pad ( input ) : _len = len ( input ) if ( _len == Card . length ) : return input elif ( _len > Card . length ) : strlen = ( _len % Card . length ) if ( strlen == 0 ) : return input else : return ( input + ( ' ' * ( Card . length - strlen ) ) ) else : strlen = ( _len % Card . length ) return ( input + ( ' ' * ( Card . length - strlen ) ) )
pad the data to the given shape with zeros .