I have a list containing:
lst = [10,20,30,40]
and i want to print it in a form as such:
output: 10 --> 20 --> 30 --> 40
i tried writing:
print("output: " + "-->".join(lst))
but I'm getting an error saying str format required. Would appreciate some help on this.