From 1ce02260b4d61cf325202961c7289f3f364015c1 Mon Sep 17 00:00:00 2001 From: pythonboi Date: Thu, 26 Aug 2021 23:38:07 -0400 Subject: [PATCH] add range for won --- Hangman.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Hangman.py b/Hangman.py index 646caf8..13c2507 100644 --- a/Hangman.py +++ b/Hangman.py @@ -37,4 +37,9 @@ if guess in chosen_word[check]: display[check] = guess + for count in range(len(display)): + if count == len(chosen_word): + print("You have won!") + break + print(display)