Can we replace multiple items?

for example i have a list A [1, 2, 3, 4, 5, 6 ]

replace (2, 5) of list A with 2 => A [1, 2, 2, 2, 2, 6]

Sure, many different ways. Here's my solution:

I had to make slight variants of the ITEM and NUMBERS FROM blocks, both of which don't do what I needed when their results should be empty:

thank u!!

it doesnt work with lists

(i tried to import a pic, but it didnt work for some reason)

Light simulation script pic (19)

made it working with lists too

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.