Science, asked by bhavnajainxyz, 6 months ago

3. How will you divide a table length into two equal parts using a string​

Answers

Answered by CarlosTheGreat
1

 1) str = "aaaabbbbcccc";

 2) #Stores the length of the string.

 3) length = len(str);

 4) #n determines the variable that divide the string in 'n' equal parts.

 5) n = 3;

 6) temp = 0;

 7) chars = int(length/n);

 8) #Stores the array of string.

Similar questions