How can I create a tuple using a for in loop in python? I tried running the following:
>>> x = (i for i in range(15))
>>> x
<generator object <genexpr> at 0x00000198CAC95A40>
But this gives a generator object instead of a tuple. Any ideas on how to get this? Not just needed to get the sequence of ints from 0 to 14 but other operations as well.