i am new to python from java.
In java we would have something like
public void func1()
{
func2();
}
private void func2(){}
However, in python i would like the equivalent
def func1(self):
self.func2("haha")
pass
def func2(str):
pass
It throws me an error of takes exactly 1 argument(2 given)
I have checked for solutions such as using
def func1(self):
self.func2("haha")
pass
@classmethod
def func2(str):
pass
but it does not work
Taking out the self in func2 makes the global name func2 not defined.
How do i exactly resolve this situation.