You are using print twice. Once in the function and when calling the function.
Please use the bbtags when posting code. You should have a look at the help section on how to ask a question.
Quick example:
Please use the bbtags when posting code. You should have a look at the help section on how to ask a question.
Quick example:
def afunc(arg): return arg def afunc2(arg): print(arg) print(afunc('I am using a return value and print')) afunc2('Callinga function that has a print') print(afunc2('Using both prints. This will return a None'))
Output:I am using a return value and print
Calling a function that has a print
Using both prints. This will return a None
None
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts