li = ["alex"," aric","Alex","Tony","rain"]
for i in li:
new_li = i.strip()
if (new_li.startswith('a') or new_li.startswith('A')) and new_li.endswith('c'):
print(new_li)
li = ["alex"," aric","Alex","Tony","rain"]
for i in li:
new_li = i.strip()
if (new_li.startswith('a') or new_li.startswith('A')) and new_li.endswith('c'):
print(new_li)