a = [2,3,4,5] # Create a list s = repr(a) # s = '[2, 3, 4, 5]' # Note : could have also used s = ´a´ b = eval(s) # Turns s back into a list