argument class python code example
Example: 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