0

Why 6.0

((4+8)/2)??

13th Jul 2021, 1:43 PM
Az Petrosyan
Az Petrosyan - avatar
4 Respostas
+ 7
Please given tags related to your questions! -> (4+8)/2 -> (12)/2 (brackets are solved first) -> 6.0 ( / ,gives float value)
13th Jul 2021, 1:47 PM
Abhiyantā
Abhiyantā - avatar
0
#If your question is why 6.0 and not 6 than the answer is, division gives always the output as float. print(6/2) result is 3.0 print(int(6/2)) result is 3
13th Jul 2021, 2:35 PM
Angela
Angela - avatar
0
Thanks 🙏🏻
13th Jul 2021, 2:38 PM
Az Petrosyan
Az Petrosyan - avatar