Cooperative Learning Question

On a piece of paper, write your NAME, SECTION and the DATE

Write a function definition that has one parameter, an integer. It returns a 1 if the parameter is positive, a zero if the parameter is zero or -1 if the parameter is negative. Use only ONE return statement.

    def afun (n):
      if n > 0:
         res = 1
      elif n < 0:
         res = -1
         res = 0
      return res

Remember to turn the paper in when requested for attendance.