Post

Python Developer
Python Developer@PythonDvz·
What is the output? Write your answer in the comments and share it with your friends✅✅
Python Developer tweet media
English
16
4
60
4.6K
Jimmy Fikes
Jimmy Fikes@akajim·
@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
0
0
1
144
Sergei Kotov
Sergei Kotov@kotov_dev·
@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
0
0
4
232
Ahmad Faiz
Ahmad Faiz@AhmadFa63513110·
@PythonDvz Data luar atau data dalam, lupa laa..😝🤪
Indonesia
0
0
0
34
Paylaş