Morning you all guys!
I need help with an excercise:
import numpy as np
movies_watched = np.array([2, 3, 8, 0, 2, 4, 3, 1, 1, 0, 5, 1, 1, 7, 2])
first_quarter = np.percentile(movies_watched, 25)
third_quarter = np.percentile(movies_watched, 75)
interquartile_range = third_quarter - first_quarter
movies_watched_sorted = movies_watched.sort()
print(movies_watched_sorted)
print(first_quarter)
print(third_quarter)
print(interquartile_range)
At the moment that I print the sorted list “movies_watched_sorted” it prints out “None” I do not know what happend.
Can anyone explain me what happend?