Posts by user136142 • 36 points
1 post
-
2
votes2
answers82
viewsA: Instantiate class by passing only a few parameters in Python 3
You can declare the name of the argument you are passing in Python. class Person: def __init__(self, name = 'not defined', last_name = 'not defined', age = 0): self.name = name self.last_name =…