def indent_block(text, indention='    '):
 temp = ''
 while (text and (text[(-1)] == '\n')):
  temp += text[(-1)]
  text = text[:(-1)]
 lines = text.split('\n')
 return ('\n'.join(map((lambda s: (indention + s)), lines)) + temp)

def indent_block ( text , indention = '    ' ) : temp = '' while ( text and ( text [ ( - 1 ) ] == '\n' ) ) : temp += text [ ( - 1 ) ] text = text [ : ( - 1 ) ] lines = text . split ( '\n' ) return ( '\n' . join ( map ( ( lambda s : ( indention + s ) ) , lines ) ) + temp )
this function indents a text block with a default of four spaces .