What is the output of the following code?
a = 11 b = 3 print (a // 2 % b + 10 / 2 + 2 ** 2)
a. 9 b. 10 c. 11 d. 12 e. 13​


megaamir555: Are you real english?
megaamir555: Or American or someone else who speaks english

Ответы

Ответ дал: megaamir555
0

Ответ: c.11

Объяснение: I think u know what is variable

// - is a division by discarding remainder.

% - is a remainder of the division

/ - is a division.

** - is an exponentiation.

1st term equals 2:

a // 2 % b = 11 // 2 % 3 = 5 % 3 = 2

2nd term equals 10/2=5

3rd term equals 2**2=4

Sum equals 2+5+4=11.

print() is an operator to output text or number in the brackets (in this code it’s a sum)

Вас заинтересует