class

Run Settings
LanguagePython
Language Version
Run Command
class Person: def __init__(self, name, age): self.name = name self.age = age def myfunc(self): print("Hello my name is " + self.name) def __str__(self): return f"{self.name}({self.age})" p1 = Person("John",48) p1.myfunc() # print(p1.name) # print(p1.age) # print(p1)
Editor Settings
Theme
Key bindings
Full width
Lines