-
-
Save Mohamed2del/66f0b9a733e021f7537787be40febe43 to your computer and use it in GitHub Desktop.
text = "X-DSPAM-Confidence: 0.8475"; | |
startPos = text.find(':') | |
piece = text[startPos+1:] | |
end = float(piece) | |
print(end) |
Smaller by 2 chars.
print(float("X-DSPAM-Confidence: 0.8475"["X-DSPAM-Confidence: 0.8475".find('0'):]))
text = "X-DSPAM-Confidence: 0.8475"
x= text.find(' ')
z= text[x+1:]
z= float (z)
print (z)
text = "X-DSPAM-Confidence: 0.8475"
a=text.find(":")
b=float(text[a+1:].lstrip())
print(b)
text = "X-DSPAM-Confidence: 0.8475"
text = float(text[text.find(':')+1:].lstrip())
print(text)
text = "X-DSPAM-Confidence: 0.8475"
x = text.find("0")
z = text.find("5")
print(float(text[x:z + 1]))
text = "X-DSPAM-Confidence: 0.8475"
start= text.find(':')
end=start[start+1:]
string=float(end)
print(string)
Text = “X-DSPAM-Confidence: 0.8475”
Pos = Text.find(‘:’)
Piece = text {Pos+2:}
end= float(piece)
Print(end)
text = "X-DSPAM-Confidence: 0.8475"
a = text.find(':')
f = float(text[a+1:])
print(f)
text = "X-DSPAM-Confidence: 0.8475"
a = text.find('0')
f = float(text[a:])
print(f)
1 Line
print(float("X-DSPAM-Confidence: 0.8475"["X-DSPAM-Confidence: 0.8475".find(':')+1:]))