-
-
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) |
text = "X-DSPAM-Confidence: 0.8475"
hewi = text.find(':')
hewi1 = text[hewi+1:]
hewi2 = float(hewi1)
print(hewi2)
3 lines:
text = "X-DSPAM-Confidence: 0.8475"
textNum=text.find('0')
print(float(text[textNum:len(text)]))
2 Lines: Better :)
text = "X-DSPAM-Confidence: 0.8475";
print(float(text[text.find(':')+1:]))
1 Line
print(float("X-DSPAM-Confidence: 0.8475"["X-DSPAM-Confidence: 0.8475".find(':')+1:]))
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)
text = "X-DSPAM-Confidence: 0.8475"
pos=text.find('0.8475')
new=text[pos:]
j=float(new)
print(j)