I have code like this :
n = list(input().split()) #Input score in alphabet
for i in n :
if i == "E" :
print("You Have Bad Score") #if you have an E score, then you cant pass
elif len(n) < 7 :
print("Your score does not qualify") #must enter at least 8 values
else :
print("You pass")
# Output
A B C C D D D E = Your have bad score
A B B A A B B C = You Pass
A B B B A = Your score doesn't qualify
But the problem in my code is when i input A B C C D D D E the output is "You Pass" not "You have bad score". Can you help me ?
xdefined in your code which you are using in your if condition.