Question: python Write a program that takes a list of names as input and does the following. - Shuffles the list. - Generates a random number

pythonpython Write a program that takes a list of names as input

Write a program that takes a list of names as input and does the following. - Shuffles the list. - Generates a random number between 1 and the length of the list. - Uses the generated random number as an index of the shuffled list to find the corresponding name in the list and declares the person as a winner. Use the list given below to check your program and display the winner

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!