In Python3.4 I have a tuple
t = ('A', 'B', 'C')
and a list
l = ['P', 'Q', 'R']
and I need to convert the tuple to a string formatted as "(#A;#B;#C)" and the list to a string formatted as "(@P; @Q; @R)". The obvious way is to traverse using a for loop and string manipulation.
Is there a way to do it without running the loop?
Thanks!