Why answer is 6.0 why not 6 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Why answer is 6.0 why not 6

9th Mar 2019, 6:11 PM
Raju Nayak
Raju Nayak - avatar
2 Respostas
+ 4
"Using a single slash to divide numbers produces a decimal (or float, as it is called in programming)." (4+8)/2 = 12/2 = 6.0 https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2271/
9th Mar 2019, 6:28 PM
Diego
Diego - avatar
+ 1
//Hey Raju Nayak can you describe your question clearly so community can help you. //If you are talking about float value then it can be 6.0
9th Mar 2019, 6:19 PM
Sudarshan Rai
Sudarshan Rai - avatar