aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Kolouch <lubos@kolouch.net>2020-08-22 13:56:19 +0200
committerLubos Kolouch <lubos@kolouch.net>2020-08-22 13:56:19 +0200
commitfc350103aee950ecd6ae058c985e9f3e94710e2b (patch)
treecdcff8f66ba07c606211339e5da3ada95dcb9d02
parent72c2dd4fea1c86c7a37a839392d1088230829a0c (diff)
downloadperlweeklychallenge-club-fc350103aee950ecd6ae058c985e9f3e94710e2b.tar.gz
perlweeklychallenge-club-fc350103aee950ecd6ae058c985e9f3e94710e2b.tar.bz2
perlweeklychallenge-club-fc350103aee950ecd6ae058c985e9f3e94710e2b.zip
Cosmetic change CH 2
-rw-r--r--challenge-074/lubos-kolouch/python/ch_2.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/challenge-074/lubos-kolouch/python/ch_2.py b/challenge-074/lubos-kolouch/python/ch_2.py
index f4888236e1..da21ecc6fb 100644
--- a/challenge-074/lubos-kolouch/python/ch_2.py
+++ b/challenge-074/lubos-kolouch/python/ch_2.py
@@ -34,10 +34,7 @@ def get_fnr(in_str):
else:
fnr_queue.remove(char)
- if fnr_queue:
- result += fnr_queue[-1]
- else:
- result += '#'
+ result += fnr_queue[-1] if fnr_queue else '#'
return result