It says The Answer 6 is wrong and 6.0 is a Ryt answer. I can't understand the logic? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

It says The Answer 6 is wrong and 6.0 is a Ryt answer. I can't understand the logic?

Can U explain why it gives a Float output.But in the previous screen the answer for 4/2 is 2 which is an Integer output

27th Oct 2017, 6:49 PM
Mohamed Azfer A
Mohamed Azfer A - avatar
2 Respostas
+ 5
It appears that division operator returns a float in any way, though I probably be wrong, the Code Playground said 4/2 equals 2.0 and not 2 as integer, I just updated my offline Python course and still am not seeing your sub-chapter. As @Kirk suggested, you may need to tell, which chapter, or maybe it's a challenge question?
27th Oct 2017, 7:32 PM
Ipang
+ 3
Could you post the section descriptions (like, "Basic Operations" followed by which panel)? I looked at several panels and their questions and still did not see your example.
27th Oct 2017, 7:07 PM
Kirk Schafer
Kirk Schafer - avatar