You need to assign the value return from a function to a variable. Since a function call has a value, you can print the returned value directly also.
def add(a, b) :
return a + b
c = add(10, 30)
print(c)
print(add(4, 8))
Arguments are for passing values to a function. You cannot return a result through parameter in Python.
If you want to return more than one values, then you can do this, for example
You’re really passing just one string to the function, so it should be more like
def f(txt):
...
return a, b, c, d, e //with a, b, c, d, e named appropriately
result = f(txt)
Or
a, b, c, d, e = f(txt) //with a, b, c, d, e renamed appropriately
If you have just two or three return values, you might name them individually instead of using indexing. (You can also take an OOP approach and return an object.)