What is the output of print(math.copysign(3, -1))?
A. 1
B. 1.0
C. -3
D. -3.0
Answer:A
What is the output of print(math.copysign(3, -1))?
A. 1 B. 1.0 C. -3 D. -3.0
Explanation: The copysign function returns a float whose absolute value is that of the first argument and the sign is that of the second argument.