Aug-06-2018, 01:01 PM
Yeah I know that. What I meant is
When I run below code
SO when I make this as a function, why do I have to type return before
When I run below code
a = (10, 20) sum(a) == 20 or a[0] == 20 or a[1] == 20It gives the answer as
Trueor
FalseThat means it returns something.
SO when I make this as a function, why do I have to type return before
sum(a) == 20 or a[0] == 20 or a[1] == 20this, since it itself is returning the answer