0

Is there a way to make a python function so that you can call it like a method? So say i had variable x, and I had a function:

def func(y):
     return str(y)+"hi"

Then call it like x.func() and have it take x in as the input?

Tim
  • 3,178
  • 1
  • 13
  • 26
EnderCodesLol
  • 79
  • 1
  • 1
  • 10

0 Answers0