A tuple is given that contains several lines, for example: ('right', rightleft ',' left ',' stop '). You need to get one line in the end and that all the 'right' are replaced by 'left'. Like this: 'left, leftleft, left, stop'
def Aс (*phrases) : k = str(phrases) t = k.replace('right', 'left') # вот на этом я застрял print(t)
t=', '.join(*phrases).replace('right', 'left'). Isn't it? - Edward Izmalkov