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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!