Write two functions:
first_arg()
should return the first parameter passed in.last_arg()
should return the last parameter passed in.
first_arg(1, 2, 3) ➞ 1
last_arg(1, 2, 3) ➞ 3
first_arg(8) ➞ 8
last_arg(8) ➞ 8
- Return
None
if the function takes no parameters. - If the function only takes in one parameter, the
first_arg
andlast_arg
functions should return the same value.