I have the following list
bar = [\'a\',\'b\',\'c\',\'x\',\'y\',\'z\']
What I want to do is to assign 1st, 4th and 5th values of bar>
bar>
Assuming that your indices are neither dynamic nor too large, I'd go with
bar = ['a','b','c','x','y','z'] v1, _, _, v2, v3, _ = bar