Help required - undefind method it says bot method exists!

def list

I solved the error myself... Thank you