def every_third(lst):
'''
every_third that takes a list as a parameter and returns
a new list that contains every third element of the original
list, starting at index 0.
>>> every_third([1,2,3,4,5,6,7,8,9,10])
[1,4,7,10]
我该怎么做?我知道我们可以使用for循环,但我不知道如何开始。如何在python列表中打印每个第三个数字而不使用切片符号(方括号)?
我想你忘了在你的问题中包括你试过的方法。 – L3viathan