while count<len(string): print string[count] if string[count] == ":": #starting point start=count state=True # need to do this after string is found if state==True: if string[count+3] is not "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9": #if thers two non numbers, string has stopped end=count break #so count+2 isnt more than len string count+=1
I'm not sure if I should use '==' or 'is', neither seems to be working.


Sign In
Create Account


Back to top









