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
Places where we test membership in a list, and then remove that value from the list, can be improved thusly:
try:
MyIndex=MyList.index(SearchValue)
exceptValueError:
# whatever we do when SearchValue is not in listpass# (or just do this)else:
# whatever we do when SearchValue is in listMyList.pop(MyIndex)
Activity