Mar-23-2017, 10:29 PM
list = ['1', '2', '3'] new_list = [int(text) for text in list]Note that the above is only going to get you part way there. It's going to fail on the fourth line of sample input.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures