What is the difference between these method? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
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