Created
          August 10, 2016 21:15 
        
      - 
      
- 
        Save ivanrvpereira/703b9002385cfdce88cf753e8f4db4f5 to your computer and use it in GitHub Desktop. 
    Exercise
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | final = aux = "" | |
| counter = 0 | |
| for letter in s: | |
| if aux == "": | |
| aux = letter | |
| if letter != aux: | |
| final += str(counter) + aux | |
| aux = letter | |
| counter = 0 | |
| counter +=1 | |
| else: | |
| final += str(counter) + aux | |
| print(final) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment