Answer:
def print_sum(a,b,c):
print(a+b+c)
one = int(input("Enter the 1st number: "))
two = int(input("Enter the 2nd number: "))
three = int(input("Enter the 3rd number: "))
print_sum(one,two,three)
Explanation:
hope this helped :)
Answer:
The output is "<class 'str'> ".
Explanation:
In the given python code a print() function is defined. Inside this function, a type() function will use, in which a numeric value is passed in the double quotes (" ") as a function parameter. Double quotes are normally used for print value as a message but in this code, value is not printed because we use the type() function.
- The type() function Returns the parameter class type of the argument(object).
- This function is used for debugging. In this function, we pass a single parameter that will return the type of given object.
Let's say for example that the business is taking in $2000 of revenue. That is the amount that the business collected for it's services - like for fixing the computer. What if though it costs $500 for the equipment (that's an expense). Now they only made $1500. Now the customer complains and says that the computer isn't fixed properly so the company sends out a techie for 2 additional hours. They need to pay their employee (another expense). Now the $1500 is down to $1400. They would have utilities to keep their lights on and insurance and many other expenses.
Your profit looks like this:
Profit = Revenue - Expenses