So, I wanted to make a code where a student enters his name, and then he is shown if he passed, didn’t pass but can retry or ultimately failed along with his average grade. (I don’t know how to do the along with his/her specific average grade).
And my code looks like this:
[passed = ["Bill", "Andrew", "Son", "Bella"]
Andrew_AG = ((5+2+4+4+5+5+4+5)/8)
Bill_AG = ((5+5+5+5+4+3+5+5)/8)
Son_AG = ((5+5+5+5+5+5+5+5)/8)
Bella_AG = ((5+5+5+5+4+3+5+5)/8)
re_try = ["Irina", "John", "Tommy"]
Tommy_AG = ((5+3+4+2+2+3+3+3)/8)
John= ((3+4+4+3+2+2+3+4)/8)
Irina_AG = ((2+4+4+4+2+2+3+3)/8)
failed = ["Ned", "Bet"]
Ned_AG = ((1+1+2+5+2+2+3+5)/8)
Bet_AG = ((1+2+2+3+2+2+3+1)/8)
if input ("What's your name?") == (("Bill") or ("Andrew") or ("Son") or ("Bella")): print ("You passed")
elif input ("What's your name?") == (("Irina") or ("John") or ("Tommy")): print ("You didn't pass, but you can re-try")
elif input ("What's your name?") == (("Ned") or ("Bet")): print ("You failed and you may not re-try")
else: print ("You're not on the list")
But unfortunately I’ve been running into mistakes where even if I enter the correct name it would ask me “What’s your name?” 3 times until displaying “You’re not on the list”. So I guess it’s something wrong with my understanding of Input command
(I’ve been coding only for 1 week so don’t blame me for bad code or dumb question)