From ce95bb64e196658339b4f13e8ecef951240e4470 Mon Sep 17 00:00:00 2001 From: Amanb007 <62053657+Amanb007@users.noreply.github.com> Date: Fri, 2 Oct 2020 15:17:11 +0530 Subject: [PATCH] Update Counter_game.py Brackets in return statement makes it easier to understand. --- HackerRank-Counter game/Counter_game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HackerRank-Counter game/Counter_game.py b/HackerRank-Counter game/Counter_game.py index b0f28fe..0505e64 100644 --- a/HackerRank-Counter game/Counter_game.py +++ b/HackerRank-Counter game/Counter_game.py @@ -11,7 +11,7 @@ def counterGame(n): n = bin(n)[2:] n = n.split('1') turns = len(n)+len(n[-1])-2 - return 'Louise' if turns&1 else 'Richard' + return ('Louise' if turns&1 else 'Richard') if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w')