Learn Data Science and Data Analysis
mylist=["ABC","DEF","DEFG","ABBC"]
for i in mylist:
if i[0:2]=="AB":
print(i)
if i.startswith("DE"):
No comments:
Post a Comment