Post

@PythonDvz C. 4 is passed to the function. 4 is then divided by 2 and the result of 2.0 is multiplied by 4 and returned. So, 8.0
English

@PythonDvz Answer: C) 8.0
x *= x/2 may look like "halve x then double it", but the right side (x/2) uses the original x before any assignment.
For beginners, the right side evaluates completely first:
4 * (4/2) = 4 * 2.0 = 8.0
English












