[inline]I want to convert any long integer number from 12576 to [6, 2], all the following snippets give me [[6, 2]] I want to remove the 2nd square bracket
gen = evens(1234)
print(next(gen)) # gives ==> [4, 2]
but
list(evens(1234) # gives ==> [[4, 2]]
is there is another method to eliminate the second square brackets using the same generators
thanks in advance[/inline]
gen = evens(1234)
print(next(gen)) # gives ==> [4, 2]
but
list(evens(1234) # gives ==> [[4, 2]]
is there is another method to eliminate the second square brackets using the same generators
thanks in advance[/inline]