So I have been trying to do this program using ifs and or loops.
I am having a hard time solving this question, If you could please assist
me in the right direction.

Write a program that lists all the composers on the list ['Antheil',
'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] whose name starts and
ends with the same letter (so Nielsen gets lsited, but Antheil doesn't).

I know below it prints the entire list of composers but i dont know  how to
do the program above. I think I am thinking to much into but ive looked at
all my notes and online resources and having a hard time coming up with
anything.
Please help!

composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen']
for person in composers:
    print(person)
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to