Question: 5-Python-BridgeShuffle Highest grade: Problem Statement Create a program to bridge shuffle two lists. To bridge shuffle, you interleave the elements from the two lists in

 5-Python-BridgeShuffle Highest grade: Problem Statement Create a program to bridge shuffle
two lists. To bridge shuffle, you interleave the elements from the two
lists in an alternating fashion, like so: List 1 = List 2

5-Python-BridgeShuffle Highest grade: Problem Statement Create a program to bridge shuffle two lists. To bridge shuffle, you interleave the elements from the two lists in an alternating fashion, like so: List 1 = List 2 = ["A", "A", "A"] ["B", "B", "B"] Shuffled List - ["A", "B", "A", "B", "A", "B"] Bridge shuffle can also work with two lists of uneven length. We simply tack on the extra elements from the longer list, like so: List 1 = List 2 = ["C", "C", "C", "C"] ["0"] Shuffled List - ["C", "D", "C", "C", "C"] Create a program that takes in two lists and returns the bridge-shuffled list. Examples Submit 5-Python-BridgeShuffle Highest grade: 3 Examples ["A", "A", "A"], ["8", "B", "3"] ["A", "B", "A", "B" "A", "B"] ["C", "C", "C", "C"], ["0"] ["C", "D", "C", "C", "C"] Notes If the two input lists are of unequal length, add the additional elements of the longer list to the end of the shuffled list. Always start your shuffle with the first element of List 1. . Sample Input 1 AAA BBB Sample Output 1 ['A', 'B', 'A', 'B', 'A', 'B'] Submit 6-Python-ListToChunks Highest grade: Problem Statement Given a list of characters and an integer n, create a new list that is the original list split into n evenly sized chunks. Print out the new list. The first input is the list (use .split()), the second input determines the n parts of the evenly sized chunks. Sample Input 1 a, b, c, d, e, f 2 Sample Output 1 [['a', 'b'], ['c','d'], ['e', 'f']] Sample Input 2 Submit

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!