Programming for Everybody: Assignment 06.5 Strings - edorlando07/datasciencecoursera GitHub Wiki
###Python Data Structures
6.5 Write code using find() and string slicing (see section 6.10) to extract the number at the end of the line below. Convert the extracted value to a floating point number and print it out.
text = "X-DSPAM-Confidence: 0.8475";
textFind = text.find("0")
print float(text[textFind:textFind + 6])
The output for the code above is the following:
0.8475