Re: Need help with coding a function in Python

2016-11-01 Thread Andrea D'Amore
On 31 October 2016 at 23:09, wrote: > http://imgur.com/a/rfGhK#iVLQKSW > How do I code a function that returns a list of the first n elements > of the sequence defined in the link? I have no idea! For those who didn't open the page (that you should have linked at least as direct link to the

Re: Need help with coding a function in Python

2016-10-31 Thread Larry Hudson via Python-list
On 10/31/2016 03:09 PM, devers.meetthebadger.ja...@gmail.com wrote: http://imgur.com/a/rfGhK#iVLQKSW How do I code a function that returns a list of the first n elements of the sequence defined in the link? I have no idea! So far this is my best shot at it (the problem with it is that the

Re: Need help with coding a function in Python

2016-10-31 Thread Steve D'Aprano
On Tue, 1 Nov 2016 09:09 am, devers.meetthebadger.ja...@gmail.com wrote: > http://imgur.com/a/rfGhK#iVLQKSW Why on earth are you posting a screen shot? Do you edit your code with Photoshop? As soon as you post an unnecessary screenshot, you cut the number of people willing and able to help you

Re: Need help with coding a function in Python

2016-10-31 Thread Paul Rubin
devers.meetthebadger.ja...@gmail.com writes: > http://imgur.com/a/rfGhK#iVLQKSW ... > So far this is my best shot at it (the problem with it is that the n > that i'm subtracting or adding in the if/else part does not represent > the element's position... Right, so can you figure out the element's

Re: Need help with coding a function in Python

2016-10-31 Thread MRAB
On 2016-10-31 22:09, devers.meetthebadger.ja...@gmail.com wrote: http://imgur.com/a/rfGhK#iVLQKSW How do I code a function that returns a list of the first n elements of the sequence defined in the link? I have no idea! So far this is my best shot at it (the problem with it is that the n t

Need help with coding a function in Python

2016-10-31 Thread devers . meetthebadger . jason
http://imgur.com/a/rfGhK#iVLQKSW How do I code a function that returns a list of the first n elements of the sequence defined in the link? I have no idea! So far this is my best shot at it (the problem with it is that the n that i'm subtracting or adding in the if/else part does not represe