Dec-22-2017, 04:25 PM
>>> source = 123456 >>> list(str(source)) ['1', '2', '3', '4', '5', '6'] >>> str(source)[0] '1' >>>
Picking out integers from a non-list variable
|
|
Messages In This Thread |
Picking out integers from a non-list variable - by AnOrdinaryFolk - Dec-22-2017, 04:18 PM
RE: Picking out integers from a non-list variable - by Mekire - Dec-22-2017, 04:25 PM
RE: Picking out integers from a non-list variable - by squenson - Dec-22-2017, 04:27 PM
|