#**********************************************************************************#
#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"; # input string for slicing
lens=len(text) # usage len() to know size of input string
zeropos=text.find('0') # finding the position of zero in entered string
slice=float(text[zeropos:(lens)]) # slicing from zero position to end of of sting
print slice # printing slice. 
