0
text = "X-Dspam-Confidence: 0.8475" ;
Write code using find() and string slicing to extract the number at the end of the line below.Convert the extracted value to a floating point number and print it out
2 Antworten
+ 5
We can't so your homework here.
Pls show your attempt
0
str = "X-Dspam-Confidence:0.8475"
ipos = str find('0.8475')
piece = str (ipos + 2:)
value = float (piece)
print (value)