I am very new to python and especially OOP. Pardon if this comes along as a silly question. Say if I have a class called X and two functions / methods within it (a and b).
var1 = "Amazon"
class X() :
def a(var1) :
........
........
def b(var1)
........
........
When I try to declare var1 outside the class, it is not passing the expected value to the methods a and b. I tested it by running my code. Is there any way to pass a singular argument across multiple methods within a class ? Kindly help. Thank you.