Copysign function

Report a typo

Write a program that takes two float numbers, x and y, and prints x with the sign of y. Use the copysign function defined in the math module.

Variables x and y are already defined.

Sample Input 1:

-43.9446830180227 87.41382942412145

Sample Output 1:

43.9446830180227
Write a program in Python 3
# place `import` statement at top of the program


# don't modify this code or the variables may not be available
x, y = map(float, input().split(' '))
___

Create a free account to access the full topic