hey there folks
enjoying myself immensely with the quests and am learning how to slice a list
was wondering if someone could let me know why I got an error for the following quest:
I was meant to:
Select the first four elements from row_1
using a list slicing syntax shortcut. Assign the output to a variable named first_4_fb
so I put in
‘’‘first_4_fb = row_1 [0:3]’’’
when submitting I was told my slice was too short and only accepted when I changed the values to [0:4]
doesn’t 0 actually count as the first element in a list, meaning that if you want the first 4 you need to count zero as the first element?
thanks in advance
Linda