class Master:
def __init__(self):
self.link = '0101010'
self.data2 = None
def sendMessage(self):
var = f'{link}/printuem'
return var
class Slave(Master):
def met(self):
vari = ['Yes', 'No']
ans = random.choice(vari)
requests.post(self.sendMessage(), data = ans)
sl = Slave
st.met()