[Tutor] Function definition

2013-09-28 Thread Sammy Cornet
Hello! I'm using python v2.7.5 (IDLE). I'm trying to write a nine_line function that should use three_lines to print nine blanc lines. For some reason, I only print one line. Can you please provide me with some explanation? I would be very grateful!

Re: [Tutor] (no subject)

2013-09-28 Thread Fabrice POMBET
To be a little more complete, (1)A=integral of f between a and b=F(b)-F(a) where F is the primitive of f (i.e f is the derivative function of F) in your little example, f=sin(x) = F=-cos(x), and therefore: A=-cos(pi)-(-cos(0))=-(-1)-(-(1))=2 (2) The trapezoid method is a way of approximating

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']

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 amitsaha...@gmail.com wrote: On Sat, Sep 28, 2013 at 3:36 PM, Jacqueline

Re: [Tutor] Function definition

2013-09-28 Thread Steven D'Aprano
On Sat, Sep 28, 2013 at 10:19:57AM -0500, Sammy Cornet wrote: Hello! I'm using python v2.7.5 (IDLE). I'm trying to write a nine_line function that should use three_lines to print nine blanc lines. For some reason, I only print one line. Can you please provide me with some explanation? I

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.

Re: [Tutor] Function definition

2013-09-28 Thread Dave Angel
On 28/9/2013 11:19, Sammy Cornet wrote: Hello! I'm using python v2.7.5 (IDLE). I'm trying to write a nine_line function that should use three_lines to print nine blanc lines. For some reason, I only print one line. Can you please provide me with some explanation? I would be very grateful!