RE: coding Fibonacci
- From: "edward" <personal.edward@xxxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Wed, 4 Nov 2009 13:25:03 -0500
I'm not cheating
Edward
-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Sina Bahram
Sent: Wednesday, November 04, 2009 12:25 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: coding Fibonacci
I only comment on this because it keeps happening. Maybe this got lost in
translation, time, or some other form of universally obviscating force, but
the point of this list is not to blindly provide answers to what is so
clearly an exercise. Instead, it is to teach so that folks can actually
learn the concepts behind what they are doing.
This is a learning exercise, so just providing the answer is not only
absolutely beyond useless, but frankly considered cheating if it's an
assignment.
Again, it just keeps happening, so I wanted to point that out one more time,
even though tons of other folks have already pointed this out time and time
before.
Please don't provide answers to learning problems ... Instead, please help
the person understand how to arrive at the solution.
Take care,
Sina
-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of black ares
Sent: Wednesday, November 04, 2009 12:19 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: coding Fibonacci
simplex:
$f1=0;
$f2=1;
$fn=$f1+$f2;
write $f1+ " " + $f2 + " " + $fn;
for $i=4; $i=$n; $i++
{
$f1=$f2;
$f2=$fn;
$fn=$f1+$f2;
write $fn;
}
----- Original Message -----
From: "Sina Bahram" <sbahram@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Wednesday, November 04, 2009 7:12 PM
Subject: RE: coding Fibonacci
> Can you state your exact problem? Provide the code you've got so far ...
> And
> so on.
>
> Are you trying to write it recursively or iteratively?
>
> Take care,
> Sina
>
>
> ________________________________
>
> From: programmingblind-bounce@xxxxxxxxxxxxx
> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of edward
> Sent: Wednesday, November 04, 2009 12:10 PM
> To: programmingblind@xxxxxxxxxxxxx
> Subject: coding Fibonacci
>
>
> hello all,
> I am having a problem coding this example in python. can anyone help
> please.
> edward
> The Fibonacci series
> 0, 1, 1, 2, 3, 5, 8, 13, 21, ...
> begins with the terms 0 and 1 and has the property that each succeeding
> term
> is the sum of the two preceding terms. Write a function fibonacci which
> accepts a positive number n and returns a list that contains the first n
> numbers in the Fibonacci series.
>
>
> __________
> View the list's information and change your settings at
> http://www.freelists.org/list/programmingblind
>
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
Other related posts: