Answers for "self funtion in python"

-3

self python

class Person:
  def __init__(mysillyobject, name, age):
    mysillyobject.name = name
    mysillyobject.age = age

  def myfunc(abc):
    print("Hello my name is " + abc.name)

p1 = Person("John", 36)
p1.myfunc()
Posted by: Guest on July-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language