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 Finding len, min, max

python sequence

Challenge Task 2 of 3

On a line beneath the existing code, find the max of the provided student_gpas list and assign it to a variable called 'max_gpa'.

Steven Parker
Steven Parker
229,783 Points

Please at least give it your best "good faith" effort, and then if you still have trouble, show your code so far.

Thanks , for your assistance, but I have long gone over this assignment, thanks for your efforts in trying to assist ...

Steven Parker
Steven Parker
229,783 Points

Next time, if you realize you don't need a question, you can delete it. But that only works as long as no answers have been given yet.

2 Answers

max_gpa = max(student_gpas)

Everett Hubbard
Everett Hubbard
11,446 Points

I recommend reviewing how to utilize min() & max().