Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

I've gotten the pig latin question in week 4, but am having problems with the Report Card GPA and the 2nd and 3rd List comprehension - has anyone done these yet? Any hints?

MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
I got my questions answered at in under 10 minutes. Go to now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer


To see the expert answer you'll need to create a free account at Brainly

i think something like: def f(word): # create a list of vowels v = 'aeiouy' # since working on comprehensions... vowels = [v[x] for x in range(len(v))] l = [word[x] for x in range(len(word)) if word[x] in vowels] return l f('the rather slothful brown fox stepped over the line') ['e', 'a', 'e', 'o', 'u', 'o', 'o', 'e', 'e', 'o', 'e', 'e', 'i', 'e'] outcomes = [[x,y] for x in ['h','t'] for y in ['h','t']] print outcomes [['h', 'h'], ['h', 't'], ['t', 'h'], ['t', 't']]
Thanks - I'm getting better with the comprehension lists. I'm still unsure of what to do with the GPA problem, I'll tackle that tomorrow. Appreciate all your help.
I'm on the GPA problem also. Like many of the exercises, it is very poorly written. It should have been peer reviewed, and student critiqued. "Could we write the program in a different way" Is this part of the exercise? "There are a couple ways to do this" Really? How about if we find just one? I think the exercise is simpler than it appears once you weed out the confusing verbage.Thats my guess at any rate. I'll know once I finish the exercise.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

What kind of trouble are you having with the GPA problem? I've posted my solution at
Thanks pdpinch - that was helpful. I'm still having trouble with how to approach these, I guess it's just me trying to figure out how to program well - my brain isn't clicking with it as easily as I would like :/

Not the answer you are looking for?

Search for more explanations.

Ask your own question