+ 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)

19th Dec 2017, 3:41 PM
imnowstudying
imnowstudying - avatar
1 ответ
0
Look here: Python 3 Tutorial / Functions and Modules / Returning from Functions
19th Dec 2017, 4:36 PM
Jonas Schröter
Jonas Schröter - avatar