Question: Write recursive code for the following problem using python 3.2+. Write a function q8() that accepts a List as a parameter and scrambles the List

Write recursive code for the following problem using python 3.2+.

Write recursive code for the following problem using python 3.2+. Write a

Write a function q8() that accepts a List as a parameter and scrambles the List into a random order, like shuffling a deck of cards. The function must complete this process without using the random library or any other built-in Python 'shuffling' method or function then return the resulting List. Examples: (your shuffled results will obviously differ ellipsis) q8() ([1, 2, 3, 4, 5, 6]) [6, 2, 4, 5, 1, 3] q8 (['Jane' 'June' 'Jon' 'Joe']) ['Jon', 'Joe', 'June', 'Jane'] q8[2.5, 5.25, 7, 8.25, '2.5']) ['2.5', 7, 5.25, 2.5, 8.25]

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!