def split_string_after(str_, n):
 for start in range(0, len(str_), n):
  (yield str_[start:(start + n)])

def split_string_after ( str_ , n ) : for start in range ( 0 , len ( str_ ) , n ) : ( yield str_ [ start : ( start + n ) ] )
yield chunks of length n from the given string .