title: Group i consecutive identical character in a string into a list
body: <p>I want the input string to be separated in such a way that all the consecutive identical characters are grouped together in a list.</p>
  
  <p><strong>Example1:</strong></p>
  
  <p><strong>str</strong> : <code>aabbcccdeddgg</code></p>
  
  <p><strong>output:</strong> <code>['aa', 'bb', 'ccc', 'd', 'e', 'dd']</code></p>
  
  <p><strong>Desired Output :</strong> <code>['aa', 'bb', 'ccc', 'd', 'e', 'dd', 'gg']</code></p>
  
  <p><strong>Example2:</strong></p>
  
  <p><strong>str</strong> : <code>helloop</code></p>
  
  <p><strong>output:</strong> <code>['h', 'e', 'll', 'oo']
  </code>
  <strong>Desired Output :</strong> <code>['h','e','ll','oo','p']</code></p>
  
  <p>On using the below code:</p>
  
  <pre><code>s = input()
  li = []
  temp_li = []
  grp = s[0]
  for ch in s[1:]:
      if ch== grp[-1]:
          grp+=ch
      else:
          li.append(grp)
  
          grp = ch
  print(li)
  </code></pre>
  
  <p><em>note: Program is not showing output for the last set of identical characters</em></p>
  
  <p><strong>Expected Answers from community:</strong></p>
  
  <ul>
  <li>Modification on above program to show the correct output</li>
  <li>or better solution in general</li>
  </ul>