00:01
Hello students, so python code for the string challenge.
00:03
So here the function is string challenge.
00:06
Here it is taking a string as a parameter.
00:09
So return a compressed version of the string using the runtime encoding algorithm.
00:14
So here compressed string at the starting is empty.
00:17
Grunt underscore character is str params 0 count 1 for i in the range 1 comma length string params.
00:26
So i will execute for loop will execute.
00:29
So if string parameter i equal to current character then increment into the count else compare the string.
00:38
So compressed underscore string plus string underscore string count plus grunt underscore character.
00:44
So this will be added and now count equal to 1 current underscore char string param i.
00:51
So compressed string equal to compressed plus str count plus current underscore character and the compressed underscore string.
01:00
So get the user input.
01:02
So user underscore input to so it will be taken from the user compress the string.
01:06
So compressed underscore string will be string challenge.
01:10
So here as an argument user underscore input will be taken.
01:13
Reverse the compressed string.
01:14
So reverse underscore compressed string equal to compressed underscore string.
01:18
So we will read from the last...