Feb. 7th, 2010

jetamors: Yoruichi is really hot (Default)
[personal profile] jetamors
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

Feb. 7th, 2010 09:28 pm
winterthunder: (Default)
[personal profile] winterthunder
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! )


Introduction to Computer Science

July 2010

2526272829 3031

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 25th, 2017 06:08 am
Powered by Dreamwidth Studios