[ create a new paste ] login | about

Link: http://codepad.org/5ZlSe2pt    [ raw code | output | fork ]

Python, pasted on Sep 15:
1
2
3
4
5
#!/usr/bin/env python
#-*- coding:utf8 -*-

num_str = '50,100,150,200,250'
print  tuple([int(n) for n in num_str.split(',')])


Output:
1
(50, 100, 150, 200, 250)


Create a new paste based on this one


Comments: