>>> [int(i) for i in str(12345)]
[1, 2, 3, 4, 5]
More Related Contents:
- Why aren’t python nested functions called closures?
- Taking multiple integers on the same line as input from the user in python
- Convert pandas.Series from dtype object to float, and errors to nans
- ‘python’ is not recognized as an internal or external command [duplicate]
- Can I create a “view” on a Python list?
- Splitting a pandas dataframe column by delimiter
- Can’t get argparse to read quoted string with dashes in it?
- Intercepting stdout of a subprocess while it is running
- Python Save to file
- Assigning string with boolean expression [duplicate]
- Comments not working in jinja2
- Convert categorical data in pandas dataframe
- How can I convert pygame to exe?
- Starting python debugger automatically on error
- Why can I pass an instance method to multiprocessing.Process, but not a multiprocessing.Pool?
- TypeError: ‘builtin_function_or_method’ object is not subscriptable
- How to avoid console window with .pyw file containing os.system call?
- How to set ticks on Fixed Position , matplotlib
- Pandas data precision [duplicate]
- How do I access Class member variables?
- How to create a FastAPI endpoint that can accept either Form or JSON body?
- Plotting histograms from grouped data in a pandas DataFrame
- pypdf Merging multiple pdf files into one pdf
- Python: Convert PDF to DOC
- How to do a polynomial fit with fixed points
- pygame.sprite.LayeredUpdates.move_to_front() does not work
- What is the difference between static files and media files in Django?
- How to find instance of a bound method in Python?
- Python: Elegant and efficient ways to mask a list
- Installing lxml for Python 3.4 on Windows x 86 (32 bit) with Visual Studio C++ 2010 Express