Program - Convert generator to a list


Topic: Program - Convert generator to a list

Solution

gen = (i for i in range(5))
a_list = list(gen)



List all Python Programs