1# Python3 code to demonstrate
2# to add multiple similar values
3# using extend() + itertools.repeat()
4from itertools import repeat
5
6# using extend() + itertools.repeat() to add multiple values
7# adds 3, 50 times.
8res = []
9res.extend(repeat(3, 50))
10
11# printing result
12print ("The filtered list is : " + str(res))
13