2010-02-07

jetamors: Yoruichi is really hot (Default)
[personal profile] jetamors2010-02-07 07:35 pm

Solution to ps3

As always, please feel free to critique my code, ask questions, or post your own code in the comments. I did problems 2-4 using iterative solutions, so I'd be especially interested in seeing recursive solutions for those problems. Also note that several of these functions call each other, so they need to be placed in the same file.

Solution to ps3 )

Lecture 6

So, who thinks the other professor was better? I'm finding this guy harder to follow, though I did catch that computers can be wrong and paranoia is good.

Paranoia, paranoia everybody's coming to get me...

Er. Lecture video under the cut. )

I have to say, I understand the whole lists, appending lists, concatenating lists idea, but I'm not following the code. For the universities bit, what are all the raw_inputs there for? Is the for loop just there to show that appending lists is messy? And which line is the concatenate? Is it "Univs = Techs + Ivys"?

(Class handout is here, and I've pasted the relevant code section under the cut.)

Click for the code! )