Python Python Sequences Sequence Operations Finding len, min, max

Haasini Beeravolu
Haasini Beeravolu
616 Points

Why is this wrong

It says that this is invalid but how

len_min_max.py
student_gpas = [4.0, 2.3, 3.5, 3.7, 3.9, 2.8, 1.5, 4.0]
len(student_gpas)

3 Answers

Peter Vann
MOD
Peter Vann
Treehouse Moderator 35,350 Points

Hi Haasini!

You aren't assigning to the variable length as instructed.

I hope that helps.

Stay safe and happy coding!

Peter Vann
MOD
Peter Vann
Treehouse Moderator 35,350 Points

Brandon: Jinx!

LOL

(You were quicker on the draw, evidently)!?!

Brandon White
seal-mask
MOD
.a{fill-rule:evenodd;}techdegree seal-36
Brandon White
Treehouse Moderator

Hi Haasini,

You’re using the len function correctly here, but you’re not storing the expression to a variable named length.