Aug-24-2017, 11:38 AM
Use the split method to break the lines apart:
'first,last,60,40,80'.split(',')
will give you the list ['first', 'last', '60', '40', '80']
. Then you can use int() to convert the last three items to integer: int('60')
will give you 60
.
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