Thread
:
Converting a character to a number
View Single Post
#
2
02-10-2010, 07:37 AM
JvdBosch
Member
Join Date: Sep 2006
Posts: 36
string = 'Interval=4'
string.split('=')[1] will return 4 (as string)
int(string.split('=')[1]) will return 4 (as int)
string[9] will return 4 (as string)
int(string[9]) will return 4 (as int)
And so on. Good luck!
JvdBosch
View Public Profile
Find all posts by JvdBosch