From f230273fcfa9b00fb0645e7e3ffceaecc6d14a47 Mon Sep 17 00:00:00 2001 From: Abhi-1005-Raj <63835322+Abhi-1005-Raj@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:42:02 +0530 Subject: [PATCH] Updated course_4_project.py getPossibleLetters(self, guessed) was changed. --- course_4_project.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/course_4_project.py b/course_4_project.py index d06f064..c9785b1 100644 --- a/course_4_project.py +++ b/course_4_project.py @@ -42,10 +42,11 @@ def getPossibleLetters(self, guessed): list = [] if self.prizemoney >= 250: for l in LETTERS: - list.append(l) + if l not in guessed: + list.append(l) else: for l in LETTERS: - if l not in VOWELS: + if l not in VOWELS and l not in guessed: list.append(l) return list