Why is there an error? The list is empty.I don't think you made the list empty;;;;
;;;;If a string is entered and the same character is repeated consecutively To compress and display a string by displaying the number of iterations ''' Input example: aaabbxxxxxa Output example: a3b2x6a1 '''
Looking at the error phrase pop from empty list, The list is empty, but I think there was an error trying to pop it.
Please make an exception when the list is empty.
© 2024 OneMinuteCode. All rights reserved.