I am newbie to python i wrote a small function which is resulting in error can you please let me know what is the mistake i am doing
def cost(input):
output=input*2
next=output*3
return output,next
print output
print next
Namerror name 'output' is not defined
output,next = cost(10)before printing output variable.