MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / extract_from_text

Function extract_from_text

Smart_Calculator/calculator.py:34–41  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

32 H-=1
33
34def extract_from_text(text):
35 l = []
36 for t in text.split(' '):
37 try:
38 l.append(float(t))
39 except ValueError:
40 pass
41 return l
42
43def calculate():
44 text = textin.get()

Callers 1

calculateFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected