I have my first question here. I'm writing a code in Python. I have following list
X = [0.2,0.3,0.2,0.3,0.2,0.3,0.2,0.3,0.2,0.3]
I would like to create a new list made by tuples of two or a different number of elements of the first list as follows.
newList = [(0.2,0.3),(0.2,0.3),(0.2,0.3),(0.2,0.3),(0.2,0.3)]
I'm looking for a function of the lists or tuples. or maybe something easy, without the use of a big "For"