comma seperated to square bracket expression node python function
<p>As part of my automation project, I need a small python function to convert comma separated node expression to square bracket format node expression something like:</p>

<p>Input:</p>

<pre><code>kvm10,kvm11,kvm12,kvm13
</code></pre>

<p>Output:</p>

<pre><code>kvm1[0-3]
</code></pre>