diff options
| author | Lubos Kolouch <lubos@kolouch.net> | 2020-08-22 13:56:19 +0200 |
|---|---|---|
| committer | Lubos Kolouch <lubos@kolouch.net> | 2020-08-22 13:56:19 +0200 |
| commit | fc350103aee950ecd6ae058c985e9f3e94710e2b (patch) | |
| tree | cdcff8f66ba07c606211339e5da3ada95dcb9d02 | |
| parent | 72c2dd4fea1c86c7a37a839392d1088230829a0c (diff) | |
| download | perlweeklychallenge-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.py | 5 |
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 |
