Report Bug

Qus

What will be the value of the following Python expression?

print(4+2**5//10)
Qus

निम्नलिखित पायथन एक्सप्रेशन की वैल्यू क्या होगी?

print(4+2**5//10)


A. 3
B. 7
C. 77
D. 0


Solution
B. 7



Explanation
The order of precedence is: **, //, +. The expression 4+2**5//10 is evaluated as 4+32//10, which is equal to 4+3 = 7. Hence the result of the expression shown above is 7.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz