I am facing a basic problem and unable to resolve it. I am getting this error
TypeError: fun() missing 1 required positional argument: 'link'
Undefined Variable self
Undefined Variable self.
glit = "http://www.google.com"
The problem is that you are trying to call that code from the class. Class should only contain methods, not your logic. You should call it from outside of the class:
class = myClass() glit = "http://www.google.com/" class.fun(glit)