Re: [Tutor] List Python Question..Please help

2013-09-28 Thread Steven D'Aprano
On Sat, Sep 28, 2013 at 12:36:13AM -0500, Jacqueline Canales wrote: > Thank you guys so much i was able to figure it out. I definitely thought to > much into the the problem and made it harder on myself. Cant thank you > enough for assisting me. I have one more problem with the coding tho. > > com

Re: [Tutor] List Python Question..Please help

2013-09-28 Thread Jacqueline Canales
THANK YOU!!! All of you were very helpful!! Will definitely use you guys again for any other issues, glad you challenged me to think rather than giving me the answer!!! On Sat, Sep 28, 2013 at 12:39 AM, Amit Saha wrote: > On Sat, Sep 28, 2013 at 3:36 PM, Jacqueline Canales > wrote: > > Tha

Re: [Tutor] List Python Question..Please help

2013-09-28 Thread Jacqueline Canales
Thank you guys so much i was able to figure it out. I definitely thought to much into the the problem and made it harder on myself. Cant thank you enough for assisting me. I have one more problem with the coding tho. composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] new_lis

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Amit Saha
On Sat, Sep 28, 2013 at 3:36 PM, Jacqueline Canales wrote: > Thank you guys so much i was able to figure it out. I definitely thought to > much into the the problem and made it harder on myself. Cant thank you > enough for assisting me. I have one more problem with the coding tho. > > composers =

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Steven D'Aprano
On Fri, Sep 27, 2013 at 12:04:38PM -0500, Jacqueline Canales wrote: > composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] > x = 'Antheil' > s = 'Saint-Saens' > h = 'Beethoven' > y = 'Easdale' > k = 'Nielsen' This is a step backwards from what you had in your first post. You h

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Amit Saha
Hi Jacqueline, On Sat, Sep 28, 2013 at 3:04 AM, Jacqueline Canales wrote: > composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] > x = 'Antheil' > s = 'Saint-Saens' > h = 'Beethoven' > y = 'Easdale' > k = 'Nielsen' > > if s[0] == 'S' or s[0] == 's' == s[-1] == 'S' or s[-1] ==

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Mark Lawrence
top posting fixed On Fri, Sep 27, 2013 at 10:04 AM, Jacqueline Canales mailto:jackiexxd...@gmail.com>> wrote: composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] x = 'Antheil' s = 'Saint-Saens' h = 'Beethoven' y = 'Easdale' k = 'Nielsen' i

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread wesley chun
hello, well, i have to say that you've at least made a good start at a solution. right now you're thinking about it very much like a human. try to put yourself into the shoes of a computer: how can we solve this task for just ONE name? once you have that solution, then you can apply the same solu

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Mark Lawrence
On 27/09/2013 18:04, Jacqueline Canales wrote: composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] x = 'Antheil' s = 'Saint-Saens' h = 'Beethoven' y = 'Easdale' k = 'Nielsen' if s[0] == 'S' or s[0] == 's' == s[-1] == 'S' or s[-1] == 's': if y[0] == 'E' or y[0] == 'e' =

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Dave Angel
On 27/9/2013 13:04, Jacqueline Canales wrote: > composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] > x = 'Antheil' > s = 'Saint-Saens' > h = 'Beethoven' > y = 'Easdale' > k = 'Nielsen' > > if s[0] == 'S' or s[0] == 's' == s[-1] == 'S' or s[-1] == 's': > if y[0] == 'E' or

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Jacqueline Canales
composers = ['Antheil', 'Saint-Saens', 'Beethoven', 'Easdale', 'Nielsen'] x = 'Antheil' s = 'Saint-Saens' h = 'Beethoven' y = 'Easdale' k = 'Nielsen' if s[0] == 'S' or s[0] == 's' == s[-1] == 'S' or s[-1] == 's': if y[0] == 'E' or y[0] == 'e' == y[-1] == 'E' or y[-1] == 'e': if k[0] ==

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread 罗彭
Maybe the length of each name matters, too. You should consider whether to skip null('') and single-character('a'). On Fri, Sep 27, 2013 at 3:57 PM, Dharmit Shah wrote: > Also, comparison is case sensitive. Meaning, 'A' and 'a' are not the same. > > Hope that helps. :) > > On Fri, Sep 27, 2013

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Steven D'Aprano
Hi Jacqueline, and welcome! Further information below... On Fri, Sep 27, 2013 at 12:48:26AM -0500, Jacqueline Canales wrote: > 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 lette

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Alan Gauld
On 27/09/13 06:48, Jacqueline Canales wrote: 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. Happy to. We won't do the homework for you but we will ask leading questions and gi

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Dharmit Shah
Also, comparison is case sensitive. Meaning, 'A' and 'a' are not the same. Hope that helps. :) On Fri, Sep 27, 2013 at 1:14 PM, Amit Saha wrote: > On Fri, Sep 27, 2013 at 3:48 PM, Jacqueline Canales > wrote: >> So I have been trying to do this program using ifs and or loops. >> I am having a ha

Re: [Tutor] List Python Question..Please help

2013-09-27 Thread Amit Saha
On Fri, Sep 27, 2013 at 3:48 PM, Jacqueline Canales wrote: > 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 ['Anth

[Tutor] List Python Question..Please help

2013-09-27 Thread Jacqueline Canales
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 st