Skip to content

Commit f653570

Browse files
committed
p46
1 parent 994cd78 commit f653570

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

46-number-search.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
def NumberSearch(str):
2+
return sum(int(i) for i in str if i.isdigit())/len([i for i in str if i.isalpha()])
3+
4+
5+
6+
# keep this function call here
7+
# to see how to enter arguments in Python scroll down
8+
print NumberSearch(raw_input())
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+

0 commit comments

Comments
 (0)