- 1
Why it display 6.0 and not 6
4 Answers
+ 5
because python silently convert integer into float. you can specify the variabel with int so it doesn't result in float
+ 5
you are welcome
0
ok thanks
0
use int() function to convert float to an integer