On 9/7/2020 3:34 AM, Shivlal Sharma wrote: >>> nice = ntime(N) >>> error: return outside of the function Please copy and paste exact text. Python actually said SyntaxError: 'return' outside function which means that a 'return' outside of a function is a syntax error. -- Terry Jan Reedy