res list(itertools chain(list list )print ("concatenated list:\ str(res)outputconcatenated list[ repetition nowwe are accustomed to using the '*symbol to represent the multiplicationbut when the operand on the left of side of the '*is tupleit becomes the repetition operator and the repetition of the operator it will makes the multiple copies of tuple and joins them all together tuples can be created using the repetition operatorexamplenumber ( , we use the comma to denote that this is single valued tuple and not an '#'expression output print numbers ( [ is tuple with one element now repetition of the operator it will makes copies of this tuple and joins them all together into single tuple another example using multiple elements in the tuple examplenumbers ( output print numbers ( in operator python' in operator lets you loop through all the members of collection (such as list or tupleand check if there' member in the list that' equal to the given item