From 40a357228ca64bd77f0f416c67b3bd92f98569a5 Mon Sep 17 00:00:00 2001 From: ashrion Date: Sat, 11 Jul 2026 18:17:10 +0530 Subject: [PATCH] fix: remove unnecessary global statement in Hangman-Game.py Removed 13-variable global declaration and its comment from main() since all variables are local and never accessed outside the function. Fixes #1632 --- games/Hangman-Game/Hangman-Game.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/games/Hangman-Game/Hangman-Game.py b/games/Hangman-Game/Hangman-Game.py index be4cba9b..df2bc313 100644 --- a/games/Hangman-Game/Hangman-Game.py +++ b/games/Hangman-Game/Hangman-Game.py @@ -23,9 +23,6 @@ from utils.banners import print_victory_banner, print_game_over_banner def main(): - # Cleaned up global variables (not strictly necessary unless modifying in nested scopes, but kept for your structure) - global all_guessed, attempts, correct_letters, display, guess, guessed_letters, hint, letter, max_attempts, selected, won, word, word_data, word_length - print("=" * 50) print("WELCOME TO HANGMAN GAME") print("=" * 50)