Quotes help make search much faster. Example: "Practice Makes Perfect"

Sunday, September 1, 2019

Codecademy Learn Statistics With Python Quantiles Exercise 4/5


# Sample Solution
from song_data import songs
import numpy as np

# Define percentile and answer here:
percentile = np.quantile(songs, 0.32)
# 3 minutes = 180 seconds < 189.936
answer = "below"

#Ignore the code below here:
try:
  print("Your percentile is " + str(percentile) + "\n")
except NameError:
  print("You haven't defined percentile")

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts