Hello good people
this is my python code:
Can I know what i am doing wrong here?
this is my python code:
if (isSubset(onesArray, twosArray, len(onesArray), len(twosArray))): if (twosArray == onesArray[:len(twosArray)]): print("The data structure is a queue.") return TrueWhen i run this, I get a syntax error that says
Error:SyntaxError: 'return' outside function
I tried to replace 'return' with 'break', but that did not seem to help as well.Can I know what i am doing wrong here?
buran write Nov-02-2020, 07:33 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.