53.9k views
2 votes
What is the correct command to shuffle the following list? import random people= ["Peter", "Paul", "Mary', 'Jane'] O shuffle (people) Opeople.shuffle() random.shuffle (people) random.shufflelist(people)​

1 Answer

3 votes

Answer:

import random

people = ["Peter", "Paul", "Mary", "Jane"]

random.shuffle(people)

Step-by-step explanation:

User Hartmut Holzgraefe
by
8.1k points