Project 16: Login Times Sorter
Data Engineer
Builds on these lessons
Current Task
Objective
np.sort() returns a new sorted array in ascending order, leaving the original array untouched.
Task: sort an array of login hours and print the result.
index.py
import numpy as np
login_times = np.array([14, 9, 22, 3, 17])
print(np.sort(login_times))
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview