Question: IN PYTHON: 6. input: a string with character in it, a string with numbers in it output: go through the two strings together. At index
IN PYTHON:
6. input: a string with character in it, a string with numbers in it output: go through the two strings together. At index i, if the number in str2 is even, put the letter in str1 into evenStr if the number is odd, put the letter into oddStr. Return the even/odd strings Sample: "helloworld" "2435232399" gives evenStr="heoo" oddStr="llwrld" ''' #def two_strings(str1,str2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
