If I understand your question, you need to print the output of a function? first thing I notice is that your code is not well formatted that maybe causing the first error.
Also you assign the call of your function to a variable “myObj” that variable now has the value of the function return’s
which is “this is a function” for you to be able to see the output you will have to put the variable in a print statement and it will log out the value stored in the variable.
I don’t know what you trying to do on the last line if you want to call the function again and log out the output of the return you can remove the dir and just call the function in the print statement.
dir is used to get operations, methods and function that operates on a data type. One last thing I noticed is that your function takes in an argument/parameter but it was never used.
For a simple function that just print out something like this without manipulating any data the argument can be ignore and the return statement is unnecessary you can add the print statement in the function body.
I hope this help ):