PY4E - Python for Everybody Assignment

PHOTO EMBED

Fri Sep 23 2022 01:48:57 GMT+0000 (Coordinated Universal Time)

Saved by @L0uJ1rky45M #python

text = "X-DSPAM-Confidence:    0.8475"
indexof0 = text.find('0')
intindexof0 = int(indexof0)
indexof5 = text.find('5')
intindexof5 = int(indexof5)
Extract = text[intindexof0:intindexof5+1]
print(float(Extract))
content_copyCOPY

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.

https://www.py4e.com/tools/pythonauto/?PHPSESSID