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

Sunday, September 1, 2019

Codecademy Learn Statistics With Python Boxplots Exercise 3/7


# Sample Solution
import numpy as np
from data import dataset

# Define quartile_one and quartile_three here:
quartile_one = np.quantile(dataset, 0.25)
quartile_three = np.quantile(dataset, 0.75)

#Ignore the code below here
try:
  print("The first quartile of the dataset is " + str(quartile_one) + ".")
except NameError:
  print("You haven't defined quartile_one.")
try:
  print("The third quartile of the dataset is " + str(quartile_three) + ".")
except NameError:
  print("You haven't defined quartile_three.")

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts