Question: Questions: 1 . What does the * * operator do ? It s to the power of that function. 2 . Based on the Python

Questions:
1. What does the ** operator do? Its to the power of that function.
2. Based on the Python code in Model 1, identify four examples of:
a) mathematical operator:
b) mathematical function:
3. For addition and multiplication to produce an output with a decimal value, what type of number must be part of the input? Provide justification for your teams answer.
4. Does division follow the same rule as in #5? Provide justification for your teams answer.
5. The output of Model 1 displayed three different errors. Explain the reason for each:
a) TypeError-3 in 3(4+2) isnt defined as multiplying.
b)1st NameError- Import math wasnt there for math.pow(2,4) so math needs to be defined.
c)2nd NameError- sqrt in sqrt(4) isnt defined with the import math.
6. Identify two differences between using a Python built-in function (e.g., abs) and a function from the math module.
 Questions: 1. What does the ** operator do? Its to the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!