Skip to main content

All Questions

5 votes
3 answers
14k views

Is it considered good practice to always have methods return a value?

Sorry for the terrible title but hopefully these snippets will give you the gist. Method 1: class Person: def __init__(self, name): self.name = name def set_name(self, new_name): ...
Tochi Obudulu's user avatar