n = [3, 5, 7] def total(numbers): result=0 for i in range(len(numbers)): result = result +(numbers) return result
Notice the indentation has disappeared - all the result statements are indented. How do I paste a print screen? - standard method does not work
Can someone help having problems with the last line - return result. Get the result - “SyntaxError: ‘return’ outside function”. Have tried changing the indentation - and then get the error “unexpected indentation”.