This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
annotations: | |
controller-gen.kubebuilder.io/version: v0.6.2 | |
labels: | |
app.kubernetes.io/instance: emissary-apiext | |
app.kubernetes.io/managed-by: kubectl_apply_-f_emissary-apiext.yaml | |
app.kubernetes.io/name: emissary-apiext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So the code below works for all test cases on my edx course and even works on Python tutor yet for some reason it doesn't work for this one single test case: | |
def isWordGuessed(secretWord, lettersGuessed): | |
for i in range(len(secretWord)): | |
if secretWord[i] in lettersGuessed: | |
return True | |
else: | |
return False | |
break | |
Test case is: | |
secretWord = 'apples' |