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 =
On Fri, Sep 27, 2013 at 10:07:39PM +0800, bharath ks wrote:
> Hello,
>
> May i know why object 'c' does not prompt for employee name and
> employee id in the following code i get out put as
Default values in Python functions and methods are evaluated once only,
when the function or method is d
On Fri, Sep 27, 2013 at 03:56:59PM -0400, Katie wrote:
> I am trying to write a program using Python v. 2.7.5 that will compute
> the area under the curve y=sin(x) between x = 0 and x = pi. Perform
> this calculation varying the n divisions of the range of x between 1
> and 10 inclusive and pri
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
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] ==
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
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
On 27/9/2013 15:56, Katie wrote:
>
> Hello,
>
>
Please post your messages in text mode, not html.
>
> I am trying to write a program using Python v. 2.7.5 that will compute
> the area under the curve y=sin(x) between x = 0 and x = pi. Perform this
> calculation varying the n divisions of th
On 9/27/2013 10:07 AM, bharath ks wrote:
> Hello,
>
Hi welcome to the tutor list.
Please post in plain text rather than tiny hard-to-read formatted text.
> May i know why object 'c' does not prompt for employee name and
employee id in the following code
You may - see comment below
> i get out
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' =
On 27/9/2013 10:07, bharath ks wrote:
> Hello,
>
> May i know why object 'c' does not prompt for employee name and employee id
> in the following code
> i get out put as
>
> Enter employee name:john
> Enter employee id:56
> Employee name is: john
> Employee id is: 56
> --
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
Hello,
I am trying to write a program using Python v. 2.7.5 that will compute the area
under the curve y=sin(x) between x = 0 and x = pi. Perform this calculation
varying the n divisions of the range of x between 1 and 10 inclusive and print
the approximate value, the true value, and the perce
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] ==
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
Hello,
May i know why object 'c' does not prompt for employee name and employee id in
the following code
i get out put as
Enter employee name:john
Enter employee id:56
Employee name is: john
Employee id is: 56
Employee name is: test
Employee
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
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
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
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
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
21 matches
Mail list logo