Skip to content

Instantly share code, notes, and snippets.

View sharkymcdongles's full-sized avatar

Bryan sharkymcdongles

View GitHub Profile
@sharkymcdongles
sharkymcdongles / ambassador_crds_v2.yaml
Created January 21, 2023 15:41
ambassador_crds_v2
---
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
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'