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)

made it working with lists too