How do I call outside function from class in python

  python-3.x

How do i call an outside function from this class ?

def test(t):
   return t

class class_test():
   def test_def(q):
       test_msg = test('Hi')
       print (test_msg)

Source: Python-3x Questions

LEAVE A COMMENT