I am not sure how to do these problems. Please help!
Write the following functions and provide a program to test them.
def firstDigit(n)
(returning the first digit of the argument)
def lastDigit(n)
(returning the last digit of the argument)
def digits(n)
(returning the number of digits in the argument)
Here's what I have so far:
def firstDigit(1, 2, 3, 4, 5):
"""Return the first digit of the argument."""
print(firstDigit[0])