Question: A function can be thought as a machine that takes inputs and gives outputs. The inputs are the members of the domain of the function
A function can be thought as a machine that takes inputs and gives outputs. The inputs are the members of the domain of the function and the outputs are the members of the range of the function. The following codes define a function 'sum' in Python.
def sum(x,y): return x+y print(sum(2,3)) You can run these codes in the following Python Online Compiler:
https://repl.it/languages/python3#main.py
What are the domain and range of this function? Write one application of functions in real life. You can give the application in computer programming, business, finance or any other field. If you want to give the application in the computer programming, use the same link above and write your function. Include the codes and the online link in your answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
