Question: You can shuffle a list using random.shuffle ( lst ) . Write your own function without using random.shuffle ( lst ) to shuffle a list

You can shuffle a list using random.shuffle(lst).
Write your own function without using random.shuffle(lst) to shuffle a list and return the list.
Use the following function header:
def shuffle(lst):
Write a main function that prompts the user to enter a list of numbers, invokes the function to
shuffle the numbers, and displays the numbers.
Here are sample runs:
Enter numbers: 123456789
[4,9,5,6,1,8,2,3,7]
Enter numbers: 24681012141618
[16,10,2,8,18,14,12,4,6

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 Programming Questions!