Skip to content

Commit 54f8428

Browse files
committed
p41
1 parent b9b9077 commit 54f8428

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

41-formatted-division.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
def FormattedDivision(num1,num2):
2+
temp = "%.4f" %(float(num1)/num2)
3+
return "{:,}".format(float(temp))
4+
5+
6+
# keep this function call here
7+
# to see how to enter arguments in Python scroll down
8+
print FormattedDivision(raw_input())
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+

0 commit comments

Comments
 (0)