Post

Premakumar Thevathasan (Prem Iyer)
@Python_Dv output is A) 17. The Python code evaluates the expression x ** y + y ** x using the assigned values for x and y. The ** operator in Python performs exponentiation (raising a number to a power). 1, x ** y is calculated: 2^3=8. 2, y ** x is calculated: 3^2=9. Finally: 8+9=17.
English
0
0
0
68
Shahrouz Nikseresht
Shahrouz Nikseresht@Shahrouzlogs·
@Python_Dv A) 17 Because priority is with exponents; it calculates them first, then performs addition. 2^3=8 and 3^2=9 ---> So 8+9=17.
English
0
0
0
55
Abdullah Shaikh
Abdullah Shaikh@abdullahsh6601·
@Python_Dv A, because exponents will be calculated first and then addition will be done, according to the rule of math in Python
English
0
0
0
30
Paylaş