Here, .index(max(bpm) is identifying the index of the highest value in bpm. print() all readings from this position to the end.
.index(max(bpm)
bpm
print()
Make sure to pick bpm, followed by max_index, and finally :.
max_index
: