code: def get_indent(self, string):
          
          indent_amt = 0
  
          if string[0] == '\t':
              return '\t'
          for char in string:
              if char == ' ':
                  indent_amt += 1
              else:
                  return ' ' * indent_amt
docs: Look through the string and count the spaces