-
-
Save codecademydev/25288d1e0899d58dcefc4902a354705d to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Write your function here | |
def odd_indices(lst): | |
odd_list = [index for index in range(0, len(lst), 2)] | |
return odd_list | |
#Uncomment the line below when your function is done | |
print(odd_indices([4, 3, 7, 10, 11, -2])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment