From 9735d015b4aba352b2666c1f5bab48f8909a7b23 Mon Sep 17 00:00:00 2001 From: Egor Kostan <20955183+ikostan@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:36:10 -0800 Subject: [PATCH] Update alphabet_war.py suggestion (code-quality): Simplify generator expression (simplify-generator) --- kyu_5/alphabet_wars_nuclear_strike/alphabet_war.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyu_5/alphabet_wars_nuclear_strike/alphabet_war.py b/kyu_5/alphabet_wars_nuclear_strike/alphabet_war.py index f4cc3ad4c9e..77ca3bfb201 100644 --- a/kyu_5/alphabet_wars_nuclear_strike/alphabet_war.py +++ b/kyu_5/alphabet_wars_nuclear_strike/alphabet_war.py @@ -82,4 +82,4 @@ def clean_battlefield(battlefield: str) -> str: del result[i] break - return ''.join(char for char in reversed(temp)) + return ''.join(reversed(temp))