You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exercise 5.7. extracting even numbers from a list. Using myEvenList = myList[0:-1:2] omits the last even element of the list, i.e. 10. When putting myEvenList = myList[0:len(myList):2], the last even number is included.
Exercise 5.7. extracting even numbers from a list. Using
myEvenList = myList[0:-1:2]omits the last even element of the list, i.e. 10. When puttingmyEvenList = myList[0:len(myList):2], the last even number is included.To clarify as appropriate.