Question on Exercise 2.3 - Math Module: "1. Write a function multadd that takes three parameters, a, b and c. Test your function well before moving on." I'm not sure what role this part (a function that takes three parameters) plays in the rest of the questions...
you sure you're in the right group?? http://docs.python.org/tutorial/controlflow.html#defining-functions
My question comes from the MIT OpenCourseware Introduction to computer science homework 2 handout sheet. At the top of this "group" i see MIT 6.00 Intro Computer Science (OCW). Now to your question "you sure you're in the right group??" no, no i'm not.
here is a link to our problem set 2: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/pset2.pdf hmmm multadd sounds familiar but i don't recall the handout you are referring to ... mind posting a link to what you are taking? anyway, you can pass stuff to functions for them to use. you do this via the function's arguments (parameters). the arguments are delineated in the funct definition. the link in my first response may help. example - http://pastebin.com/GTQKyk49
Join our real-time social learning platform and learn together with your friends!