Skip to content

Commit 109e59b

Browse files
committed
Optimize answer to question 6.
1 parent 81b147a commit 109e59b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

100+ Python challenging programming exercises.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ import math
164164
c=50
165165
h=30
166166
value = []
167-
items=[x for x in raw_input().split(',')]
168-
for d in items:
167+
for d in raw_input().split(','):
169168
value.append(str(int(round(math.sqrt(2*c*float(d)/h)))))
170169

171170
print ','.join(value)

0 commit comments

Comments
 (0)