- 1
What's the output of this code?
Print(100//10+100-0+10*10)
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
+ 3
Charles Mwaniki is there any particular reason why you couldn't just run the code and find out?
+ 1
I guess it should be 210. I may be wrong :3