Hi there,
I'm having problem with a coding practice question where I have to create a function that adds the first digit of two numbers. In this function, I try to do num1[0] and num2[0] to get the first digit of each number and then convert it into an integer, but I always get told that int is not subscriptable. What's wrong here?
def get_funny_sum(num1, num2):
num1 = int(num1[0])
num2 = int(num2[0])
sum = num1 + num2
return sum
For this exercise, I do not to do the get_funny_sum() part, just the def get_funny_sum() part.

