<gh_stars>0

string = 'X-DSPAM-Confidence: 0.8475'

col_pos = string.find(':')                  # Finds the colon character
number = string[col_pos + 1:]                 # Extracts portion after colon
confidence = float(number)                  # Converts to floating point number
print(confidence)
string = 'X-DSPAM-Confidence: 0.8475'

col_pos = string.find(':')                  # Finds the colon character
number = string[col_pos + 1:]                 # Extracts portion after colon
confidence = float(number)                  # Converts to floating point number
print(confidence)
# Finds the colon character # Extracts portion after colon # Converts to floating point number