There are several ways to combine the two functions, the correct way depends on what you want. @Hari_Sheldon's answer uses nested function. In this case check_fermat() can be used only in the body of take_input() function.
Maybe you want two independent functions. Imagine a situation where a function collects the input, and this input can be used by different functions to perform different tasks, calculations, or whatever. Being the input the same, make sense to use a separate function so that you do not have to repeat yourself. In your example (checking Fermat's Last Theorem) you could write:
def take_input(): #take input from user
i_a = int(input("Enter a: "))
i_b = int(input("Enter b: "))
i_c = int(input("Enter c: "))
i_n = int(input("Enter n: "))
return i_a, i_b, i_c, i_n
def check_fermat(): #evaluate the input and print results
a, b, c, n = take_input()
if n > 2:
if c**n == a**n + b**n:
print("Holy smokes, Fermat was wrong!")
else:
print("No, that doesn’t work.")
else:
print(n, "enter greater than this.")
check_fermat()
You do not need to pass as argument the variables which you want from the user (the ones obtained with input()), they will be overwritten in any case. But the function which reads them, must return them otherwise they will be lost.
check_fermatto take the input from user? Using another function just for this is redundant.