+ 1
simple operation question 2 >>> (4 + 8) / 2
why the answer is 6.0 not 6 ?
2 odpowiedzi
+ 3
basically you divide so you can get decimal so to get the same type always it is as float. to get full integer always use // or convert to int
+ 2
Type casted to float
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2271/
Yellow box of second lesson