- 1

Какой будет ответ (2**3)//2)

Подскажите пожайлуста

14th Feb 2022, 5:03 PM
Ульяна Бессонова
Ульяна Бессонова - avatar
2 odpowiedzi
+ 1
I think it's 4
14th Feb 2022, 5:28 PM
Mohammadmehdi Karami
Mohammadmehdi Karami - avatar
0
**x means that you multiply the same thing x times, so here you are doing 2**3 which is actually equal to 2*2*2=8. Now // is floor division means the quotient will be calculated but as 8 is a multiple of 2 then, 2*4=8 Thats why, 8//2=4
15th Feb 2022, 2:31 AM
NEZ
NEZ - avatar