- 1

What's the output of this code?

Print(100//10+100-0+10*10)

19th Aug 2021, 3:11 PM
Charles Mwaniki
Charles Mwaniki - avatar
3 Respostas
+ 3
Is 210 100//10 is 10 10+100+100 = 210 The Python 3 floor division "//" rounds the result down to the nearest whole number. In this case 100//10 = 100/10 = 10 However: 99/10 = 9.9 99//10 = 9
19th Aug 2021, 3:58 PM
David García Prados
+ 3
Charles Mwaniki is there any particular reason why you couldn't just run the code and find out?
19th Aug 2021, 3:23 PM
Simon Sauter
Simon Sauter - avatar
+ 1
I guess it should be 210. I may be wrong :3
19th Aug 2021, 3:18 PM
Sylar Haku