First, you missed the closing " in useless that would end at Hello. Python now thinks you want to include "Hello, 95, " and at jello it gets confused as hell, and so-on.
Also, you seem to have a fundamental misunderstanding of how functions use parameters and arguments. First, let's define the difference between the two.
Parameters are what you put inside a function when you define it:
def Function(parameter_1,parameter_2):
a = parameter_1
b = parameter_2
Arguments meanwhile are the values you pass into the functions when you call them:
Function(argument_1,argument_2)
Thinking in mathematical terms, when you call a function where X=? and Y=?, you are saying:
"call Function, and plug in "value" for x and "value2" for y"
Running with these examples, you can rewrite your function useless in two ways:
You can do no arguments, where it will always return "x":
def useless():
x='That was a waste of my time'
return x
Or, you can pass arguments through parameters in the function to give more flexibility to your function:
def useless(x):
return x
useless('That was a waste of my time')
Either will return the same line.
Finally, to ensure you know the difference between return and print; When using a function, you don't always want to print your result, but you still want to get it. That is where return works; Calling the function will then bring back whatever value that you tell it do with the return line.
For example, in the first useless I defined with no parameters, the function takes no argument and returns x as it is defined, always.
The other useless I defined, however, is essentially a "print" function because it takes the argument you give it and just returns it automatically.
Why return in these cases and not print? Because now that you're returning, you have the option of telling Python to print or store useless!
Thanks to return, you can either write:
print useless(x)
or
variable = useless(x)
where now you can use variable however you like, even if you just do print variable.
I hope my over-explaining hasn't overwhelmed. If you still don't understand, try doing the Codecademy Python tutorial, which may help you to conceptually grasp all of this (the website isn't completely behaving at the moment, but if you do the lesson in Codecademy Labs, you can still hack your way through the tutorials).