1.1-Introductie-Programmeren

Generating a random order of people

Difficulty: Filled Filled Outlined

Write a program that asks the user for a few names and prints the names in random order.

The remove-method could come in handy, because it allows you to remove an element of the list at a certain position and return the removed item at the same time (see documentation). This ensures that no person is selected twice (because it’s removed from the list).

Examples

Example

Example