November 24, 2024, 10:03:30 PM

1,531,355 Posts in 46,734 Topics by 1,523 Members
› View the most recent posts on the forum.


python class

Started by guff, February 08, 2009, 01:04:23 AM

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

Go Down

guff

lesson one: generators

jmv and lawlz do either of you understand them in the slightest  akudood;

for your homework assignment you must write a generator that take an arbitrary number of integers as input, and then iterates over the pattern formed between the successive differences between elements of the input i.e. foo(1,2) => 1, 2, 3, 4, 5..., foo(1,3) => 1, 3, 5, 7, foo(1,3,7) => 1, 3, 7, 9, 13, 15, 19...

akudood;

ncba93ivyase

how can you assign homework without the actual lesson

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

guff

Quote from: Pancake Persona on February 08, 2009, 07:21:43 AM
how can you assign homework without the actual lesson
you're supposed to read the textbook welcome to college akudood;

Go Up