Project 20: Plan Shuffle Simulator
Data Engineer
Builds on these lessons
Current Task
Objective
np.random.permutation() returns a new, randomly reordered copy of an array, leaving the original untouched.
Task: seed the generator with 7, then print a randomly shuffled order of three plan names.
index.py
import numpy as np
np.random.seed(7)
plans = np.array(['Basic', 'Pro', 'Enterprise'])
shuffled = np.random.permutation(plans)
print(shuffled)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview