Identify and correct the errors in the following program:
1 def function1(n, m):
2 function2(3.4)
3
4 def function2(n):
5 if n > 0:
6 return 1
7 elif n == 0:
8 return 0
9 elif n < 0:
10 return –1
11
12 function1(2, 3)
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.