I want to assign folder names on `dirs` list to variables from `vars` list. Main problem is that `var` have stable number of items, but `dirs` can be changed by user. 

```
import os, sys
path = "C:\BAR_PREK"
dirs = os.listdir( path )
vars = ['VAR0.Value', 'VAR1.Value', 'VAR1.Value', 'VAR3.Value', 'VAR4.Value', 'VAR5.Value', 'VAR6.Value']    

```

I was written stupid code like this: 

```
VAR0.Value = dirs[0]
VAR1.Value = dirs[1]
VAR2.Value = dirs[2]
<...>

```

But if we get empty dirs[x] value, it causes an error.