Hi! I'm solving problem set2, but it seems like I'm doing things in reverse, can anyone take a look and tell me if it is considered a solution:
the attached is the python file:
Which 6.189? I don't see that problem in either.
its course 6.00
Ah. You posted in the 6.189 section. Small miss. #to get all the possible numbers of nuggets that can be bought in exact numbers Ummm... that is an infinite solution. It looks like problem 2 and 3 are related. One id to find the last number you can't buy to show that you can buy any number after it and the other is to just find it. Why this works is because at some point everything could be a combination if smaller parts. 4*6=24, 20+6=26, 3*9=27, 20+9=29 so a few in the 20s but the assignment shows several in the 50s. @bwCA Did you work this one in the 2008 6.00?
did you get a correct answer? there many ways to solve it and get the correct answer. the problem set is about flow control, loops, conditional statements, variables, containers please use a code pasting site http://dpaste.com/1397610/ - http://dpaste.com - http://pastebin.com - https://gist.github.com/ - http://pastie.org - http://codepad.org - http://ideone.com - http://www.repl.it/ paste your code there and post the link here. select Python syntax highlighting when u paste.
Join our real-time social learning platform and learn together with your friends!