Let's say I have three variables:
var_1 = 'blank.png'
var_2 = 'blank.png'
var_3 = 'blank.png'
I want to change those variables to some values (file paths) I have in a list:
paths = ['dir/file_1.png', 'dir/file_2.png', 'dir/file_1.png']
The problem is that the paths list changes based on user input, there could be 1 entry, or 2, is there a way to make a loop which for every index value in the list, sets the variable value accordingly, something like:
for i in paths:
var_1 = i
With an increment for the variable?