+ 1
What is the difference between these method?
These seems like to make same results. I don't understand what "return" does stand for. Please teach me. Thank you. def pop(self): self._hiddenlist.pop(-1) def pop(self): return self._hiddenlist.pop(-1)
2 Answers
0
Look here:
Python 3 Tutorial / Functions and Modules / Returning from Functions