Phython Tutorial in Suggestions Posted June 25, 2019 There's no enough explanation to the variables used in the tutorials. For example, what is "self"? Is it an object or just a parameter? class Person: def __init__(self, name, age): self.name = name self.age = agep1 = Person("John", 36)print(p1.name)print(p1.age)
Phython Tutorial
in Suggestions
Posted
There's no enough explanation to the variables used in the tutorials. For example, what is "self"? Is it an object or just a parameter?
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
p1 = Person("John", 36)
print(p1.name)
print(p1.age)