import itertools, sysa = itertools.permutations([1, 2, 3, 4, 5, 6])print(sys.getsizeof(a))print(sys.getsizeof(list(a)))
Standard input is empty
184 5888
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!