LearnPy Hub
← Modules & the Standard Library problems
Medium

Seeded Shuffle

Read a seed and a list of words. Call random.seed(seed), shuffle the list with random.shuffle and print it. The same seed always gives the same order.

Input

A seed, then words.

Output

One line.

Sample 1

Input
1
a b c d e
Output
c d e a b

Sample 2

Input
42
red green blue
Output
green red blue
solution.py
Output appears here
Seeded Shuffle · Python practice problem · LearnPy Hub