'''
Online Python Compiler.
Code, Compile, Run and Debug python program online.
Write your code in this editor and press "Run" button to execute it.
'''
myList = ["a","b","c","d","e","f","g"]
for index, item in enumerate(myList):
try:
assert (item != "c")
print(item)
except:
print(myList[index:])
break