newbie question

wxjmfauth at gmail.com wxjmfauth at gmail.com
Thu Mar 24 13:11:21 EDT 2016


>>> s = "(1, 2, 3, 4)"
>>> a = tuple([int(e) for e in s.strip('()').split(',')])
>>> a
(1, 2, 3, 4)
>>>



More information about the Python-list mailing list