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.
Answers
Answered by
0
Answer:
good question ok the answer is good
Answered by
0
Answer:
text = "X-DSPAM-Confidence: 0.8475";
str=text.find('0.8475')
ff=text[str:100]
rr=float(ff)
print(rr)
Similar questions