You mean this?
num = 1234
lst = [int(i) for i in str(num)]
More Related Contents:
- From list of integers, get number closest to a given value
- Call int() function on every list element?
- converting a list of integers into range in python
- How to convert a string of space- and comma- separated numbers into a list of int? [duplicate]
- Splitting List That Contains Strings and Integers
- Converting integer to digit list
- Convert all strings in a list to integers
- How can I convert string values from a dictionary, into int/float datatypes?
- How do I add together integers in a list (sum a list of numbers) in python?
- Shuffling a list of objects
- Why does integer division yield a float instead of another integer?
- Checking whether a variable is an integer or not [duplicate]
- What do ellipsis […] mean in a list?
- Apply function to each element of a list
- Python assigning multiple variables to same value? list behavior
- Convert NumPy array to Python list
- First Python list index greater than x?
- Wrapping around on a list when list index is out of range
- Is it possible to get a list of keywords in Python?
- Tuple or list when using ‘in’ in an ‘if’ clause?
- Convert a string to integer with decimal in Python
- Implement list-like index access in Python
- How to convert datetime to integer in python
- How to convert a set to a list in python?
- Confused with python lists: are they or are they not iterators? [duplicate]
- Use endswith with multiple extensions
- How to zip two lists of lists
- How to create a number of empty nested lists in python [duplicate]
- How can I sort a list, according to where its elements appear in another list?
- Size of a Python list in memory