Nt1310 Unit 1 Programming Assignment

512 Words3 Pages

Generally this week programming assignment was not easy for me to do, there have been a lot of up and down and I find it a little challenging to finish my programming assignment. But unfortunately I was not able to submit my work because by the time I finished, it was too late for me to submit, but I learnt a lot on return values which only can you pass a parameter value into a function, a function can also produce a value. The built-in functions such as abs, pow, int, max, and range, have produced results. Calling each of these functions generates a value, which we usually assign to a variable or use as part of an expression. You have already seen this in some previous functions that you have used. For example, len takes a list or string as …show more content…

Also I leant something on composition of functions which is simpler to evaluate a composition at a point because you can simplify as you go, since you'll always just be plugging in numbers and simplifying. Evaluating a symbolic compositon, where you're first plugging x into some function and then plugging that function into some other function, can be much messier. But the process works just as the at-a-number composition does, and using parentheses to be carefully explicit at each step will be even more helpful. A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument. The value provided as the result of a function call. Code that is used during program development to assist with development and debugging. "Function Composition" is applying one function to the results of another. Some functions can be de-composed into two (or more) simpler functions. Assume that the center point is stored in the variables xc and yc, and the perimeter point is in xp and

More about Nt1310 Unit 1 Programming Assignment

Open Document