text="X-DSPAM-Confidence: 0.8475"
get1=text.find(':') #find the position of the :
get2=text.find('5') #find the position of the 5
print("the : is at", get1) #printing their positioon
print("the 5 is at", get2)
get3=(text[19:29]) #slicing the string
get4=float(get3.lstrip())
print(get4)
إرسال تعليق