How do I write the magic function below?
magic
>>> num = 123 >>> lst = magic(num) >>> >>> print lst, type(lst) [1,
magic = lambda num: map(int, str(num))
then just do
magic(12345)
or
magic(someInt) #or whatever