I don't know what my mistake is here.
student_gpas = [4.0, 2.3, 3.5, 3.7, 3.9, 2.8, 1.5, 4.0]
sliced_gpas = student_gpas[2:7;]
the semi-colon, it should be
sliced_gpas = student_gpas[2:7:]
Change the 7 to 5. and get rid of the semi-colon.
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.