Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions interquartile/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import codecademylib3_seaborn
from song_data import songs
import matplotlib.pyplot as plt

maximum = max(songs)
minimum = min(songs)
#Create the variable song_range here:
song_range = maximum - minimum

# Ignore the code below here
plt.hist(songs, bins = 200)
plt.xlabel("Song Length (Seconds)")
plt.ylabel("Count")
plt.show()

try:
print("The range of the dataset is " + str(song_range) + " seconds")
except NameError:
print("You haven't defined the variable song_range yet")
1 change: 1 addition & 0 deletions interquartile/song_data.py

Large diffs are not rendered by default.