Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Sequences Sequence Operations Recap of Sequence Operations

I'm not sure what to put in the blank

on question 2 the question says: "The value of the highest_grade variable will be ____ when the following code is executed" with this code below it:

grades = [64, 92, 78, 97, 83, 89, 94]

highest_grade = max(grades)

(I'm sorry I don't know how to print out the code like how it is in the question) I've tried putting '94', 'max', 'biggest' but it said incorrect to all of them. If you know the answer please tell me, because I have no clue what it is.

1 Answer

Steven Parker
Steven Parker
231,271 Points

I think you have the right idea, that the max function will return the biggest value of the set. But take a look at the list again, because the biggest value in that array isn't 94 — it's 97.

wow I'm dumb, but thank you for the help!