Feb-01-2018, 07:11 PM
every function returns something. if it does not return anything explicitly, it returns
on line 3, it first call function h, it prints hey - that is the first line of the output and returns None, so your print function actually gets a 2 element tuple - None, 'hello' and prints it (that is the second line of the output)
None
. That is the case with your function h - it does not return anything explicitly, so it return Noneon line 3, it first call function h, it prints hey - that is the first line of the output and returns None, so your print function actually gets a 2 element tuple - None, 'hello' and prints it (that is the second line of the output)