0

Why 1/3 gives no output in python?

When I input 1/3 or 11/3 there is no output. Can anyone please explain that?

19th Apr 2017, 3:35 PM
RAJESH SINHA
RAJESH SINHA - avatar
3 ответов
+ 3
That's a rather vague question... To create an output that will be displayed you need to use the "print(1/3)" command That will give you an output
19th Apr 2017, 3:41 PM
matan
0
Thanks a lot
19th Apr 2017, 3:48 PM
RAJESH SINHA
RAJESH SINHA - avatar
0
dada do it like s=a/b print s it is correct for py 2.7 a//b valid but in py3 it is used for float division
27th Apr 2017, 3:46 AM
SHANU DEY
SHANU DEY - avatar