Commit 029c803d authored by Akhil's avatar Akhil

string find and slice

parent 8cc572a4
str = 'X-DSPAM-Confidence:0.8475'
finding = str.find(':')
slicing = str[finding+1:]
final = float(slicing)
print(final)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment