aboutsummaryrefslogtreecommitdiff
path: root/challenge-120/abigail/python
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-07-07 23:40:22 +0200
committerAbigail <abigail@abigail.be>2021-07-07 23:40:33 +0200
commit5d0f54f23eec04b6fd6b7926f4f6daf050179714 (patch)
tree1e9f3b776bb574e1ce23e438a1040cc3408926f7 /challenge-120/abigail/python
parentad9d953c41091da4fc2dc096d935f9b63c8bfb89 (diff)
downloadperlweeklychallenge-club-5d0f54f23eec04b6fd6b7926f4f6daf050179714.tar.gz
perlweeklychallenge-club-5d0f54f23eec04b6fd6b7926f4f6daf050179714.tar.bz2
perlweeklychallenge-club-5d0f54f23eec04b6fd6b7926f4f6daf050179714.zip
Simplify printing results in Python solution, week 120, part 2
Diffstat (limited to 'challenge-120/abigail/python')
-rw-r--r--challenge-120/abigail/python/ch-2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-120/abigail/python/ch-2.py b/challenge-120/abigail/python/ch-2.py
index 5c01644600..012ed7569f 100644
--- a/challenge-120/abigail/python/ch-2.py
+++ b/challenge-120/abigail/python/ch-2.py
@@ -21,7 +21,7 @@ for line in fileinput . input ():
if 2 * angle >= FULL_CIRCLE:
angle = FULL_CIRCLE - angle
- print ("{}" . format (int (angle / 2)), end = '')
+ print (int (angle / 2), end = '')
if angle % 2:
print (".5", end = '')
print ("")