Numbers are formatting weirdly when calling functions

I am not sure why when I call this functions and similar ones like it that take multiple inputs and return an output, that it will not do the specified actions on the inputs and instead gives this message. I have never had this happen before.

I can’t upload two pictures of the function I wrote but the code is

def slope(x1,y1,x2,y2):
m = (y2-y1)/(x2-x1)
return m

And when I called the function I assigned each of the variables a value

What’s the link to the lesson/project?
Is that all your code?

Rather than a screenshot, you can always post your formatted code by selecting “preformatted text” from the gear icon in the menu, or, “</>”

You are making a function call and are also providing arguments,

slope(x1, y1, x2, y2)

but you aren’t doing anything with the returned value. You should either store the returned value in a variable, or you could print the value immediately. If you don’t do either, then the function will be executed, a value will be returned and the returned value will be thrown away without anything meaningful being done.

def func(x, y):
    return x + y

# Approach A:
func(2, 4)
# Function is being called with two arguments. Function is executed and 
# a value is returned. The returned value 6 is neither printed nor assigned 
# to a variable, so nothing useful happens.

# Approach B:
print("The result is:", func(2,4)) 
# Output: "The result is 6"
# The returned value is printed immediately.
# If the returned value is needed again, we will have to make a fresh function call.

# Approach C:
answer = func(2, 4)
print("The result is:", answer)
# Output: "The result is 6"
# The returned value is assigned to a variable.
# Now, the returned value can be recalled and used as many
# times as we want without the need of a fresh function call.

In your screenshot, you are making the function calls slope(x1, y1, x2, y2) and point_distance(x1, y1, x2, y2) but you are not doing anything with the returned values.

In your print statements such as,

print("The slope between the two points is:", slope)

you are just printing information about the function (such as name of function and memory address where function is stored). You are not calling/executing the slope function.