# Compress string using counts of repeated characters

def compress_str(str):
	output = ""
	curr_char = ""
	curr_count = ""

@@ -106,19 +106,262 @@
 %22%0A%09c
-urr_count = %22%22
+har_count = %22%22%0A%0A%09for i in str:%0A%0A%09%09if curr_char != str%5Bi%5D:%0A%09%09%09output = output + curr_char + char_count # add new unique character and its count to our output%0A%09%09%09curr_char = str%5Bi%5D # move on to the next character in string%0A%09%09%09char_count = 1 # reset count to 1
 %0A

Elaborate what to do if we find a new unique character in string