How would you 1) insert 1's between any two adjacent 5's? and then 2) insert a value into the second list at the same index as the 1 that was inserted into the first list?
For example,
list1 = [ 5, 1, 5, 5, 5, 1, etc.]
would become
list1 = [ 5, 1, 5, 1, 5, 1, 5, 1, etc.]
And,
list2 = [ val, val, val, val, val, val, etc.]
would become
list2 = [ val, val, val, Nval, val, Nval, etc.]
(Nval up above = the added value)
I'm a beginner so help is greatly appreciated :O)