0

python string

text = "X-DSPAM-Confidence: 0.8475"; x=text.find("0.8475") z=text.find("5") y=text[x:z+1] i=float(y) print(i) this is a piece of code i have written and when i run it there is a prompt asking me to pull data from string someone pls help me do that

22nd Jun 2020, 9:13 AM
Amanillah Mansuri
Amanillah Mansuri - avatar
5 Antworten
+ 5
Please put your code that causes the error in playground, and link it here. Thanks!
22nd Jun 2020, 9:40 AM
Lothar
Lothar - avatar
0
Can you add a screenshot, because the code is working and finishing as it should
22nd Jun 2020, 9:23 AM
Bal Gu
Bal Gu - avatar
0
How do i add a screenshot
22nd Jun 2020, 9:24 AM
Amanillah Mansuri
Amanillah Mansuri - avatar
0
Make a link to an online servic like google pics or imgur
22nd Jun 2020, 9:25 AM
Bal Gu
Bal Gu - avatar