- 1

Dont u think guys, one if the program showing an output of "True False" in the chapter of recursion is wrong? Well i think so.

Check out the Chapter of Functional Programming to n Python , head to the recursion part, check the last program. I think the output should be- >> False False >> if u get it to be perfect, just notify me pls. N pls do describe how. Thanx!!

8th May 2017, 3:29 PM
Litro Sazz
Litro Sazz - avatar
2 Answers
+ 4
The first function returns not is_odd(17) 17 is odd, so is_odd(17) is True. But as the function returns the negation, it actually passes on False.
8th May 2017, 3:31 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
bro, explain further. I think u just made the same point which I mean to be the correct. Just put your answer whether u agree to the output. if yes, why. Don't beat about the bush.
9th May 2017, 2:05 PM
Litro Sazz
Litro Sazz - avatar