# Sum concecutive strings

**URL:** <https://forum.dynamobim.com/t/sum-concecutive-strings/73418>\
**Category:** Lists-Logic\
**Created:** [February 16, 2022, 9:00pm UTC](https://forum.dynamobim.com/t/sum-concecutive-strings/73418 "2022-02-16T21:00:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [February 16, 2022, 9:30pm UTC](https://forum.dynamobim.com/t/sum-concecutive-strings/73418/4 "2022-02-16T21:30:26Z")

</div>

Welcome to the forums. This is not a ‘do my work’ forum, so you’ll usually get better responses if you show what you’ve attempted so far so that other users can guide you on ways to improve your script.

In this case, I think it’ll be of immediate benefit to start thinking of terms and phrases to use in the search tool.

This thread should be what you are looking to do, I came across it by looking up “Grouping”, “Consecutive”, “Repeated”, and “Sequential” until something that matched the problem was found.

> [@Group Repeated Sequential Items in List](https://forum.dynamobim.com/t/group-repeated-sequential-items-in-list/62329/5):
>
> Python can help you directly get that as well! from itertools import groupby OUT = [keyValue for keyValue,groups in groupby(IN[0])] Or you can do something using the OOTB nodes like this. I took this [post](https://forum.dynamobim.com/t/split-the-list-by-boolean/62093/13) as a base but I’m sure there would be better node solutions out there. [SplitList.dyn](https://forum.dynamobim.com/uploads/short-url/jfcxkk2FIp50l7yZE6RqeR2HJRC.dyn) (32.5 KB)

 ![List Local Grouping_2022-02-16_01-31-53](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/1/c18136c202124fb2ded78ad6b563f1a26c63629b.png)  
Same script as the link, but with nodes grouped and explained

---

_[View the full topic](https://forum.dynamobim.com/t/sum-concecutive-strings/73418)._
