Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
34
def
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
43
def
calculate():
44
text = textin.get()
Callers
1
calculate
Function · 0.85
Calls
1
split
Method · 0.80
Tested by
no test coverage detected