this is the error
Traceback (most recent call last):
File "/piston/jobs/84134f09-a047-4c90-818b-68bf6363f496/file0.code", line 11, in <module>
for j, w in func.items():
AttributeError: 'function' object has no attribute 'items'
this is the code
mylist = ['a','b','c']
def func():
newlist = []
otherlist = []
for i in mylist:
newlist.append(i)
for x in range(1, len(newlist)):
otherlist.append(x)
return newlist, otherlist
for j, w in func():
print(j, w)
