diff --git a/Python Data Structures/Chapter 6/Assignment 6.5.py b/Python Data Structures/Chapter 6/Assignment 6.5.py index 22a00e6..fd9e2ba 100644 --- a/Python Data Structures/Chapter 6/Assignment 6.5.py +++ b/Python Data Structures/Chapter 6/Assignment 6.5.py @@ -10,3 +10,14 @@ b = float(a) print(b) text.find(":") + +""" + Created on 23rd June, 2020 + @author: J R Mishra +""" + +text = "X-DSPAM-Confidence: 0.8475"; +n=text.find(":") +a = text[n+1:] +b = a.strip() +print(float(b))