Write a Python function that takes a string as parameter. The string has only the digits 0-10 as characters and its length is divisible by 3. string is not empty. You need to create two new strings....


Write a Python function that takes a string as parameter. The string<br>has only the digits 0-10 as characters and its length is divisible by 3.<br>string is not empty.<br>You need to create two new strings. For this, you can use a for loop<br>with a step of 3 (step = 3) to step through the string in blocks of 3<br>characters.<br>Create the first string where each character is the first character of<br>each block of 3 characters.<br>Create the second string where each 2 characters are the second and<br>third characters of each 3 character block of s.<br>

Extracted text: Write a Python function that takes a string as parameter. The string has only the digits 0-10 as characters and its length is divisible by 3. string is not empty. You need to create two new strings. For this, you can use a for loop with a step of 3 (step = 3) to step through the string in blocks of 3 characters. Create the first string where each character is the first character of each block of 3 characters. Create the second string where each 2 characters are the second and third characters of each 3 character block of s.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here