Answers for "python pass class as argument"

0

python pass class as argument

class a():
    def __init__(self):
      print "an object from class a is created"

def hello(the_argument):
  x = the_argument()
 
hello(a)
Output:
an object from class a is created
Posted by: Guest on March-20-2021

Code answers related to "python pass class as argument"

Python Answers by Framework

Browse Popular Code Answers by Language