Printing list items within a specific format : <p>I have a list containing:</p>

<pre><code>lst = [10,20,30,40]
</code></pre>

<p>and i want to print it in a form as such:</p>

<pre><code>output: 10 --&gt; 20 --&gt; 30 --&gt; 40
</code></pre>

<p>i tried writing:</p>

<pre><code>print("output: " + "--&gt;".join(lst))
</code></pre>

<p>but I'm getting an error saying str format required. Would appreciate some help on this.</p>
