Make a program that manages the vestibular result. For your happiness, there is only one course and the course has 10 places. The program must maintain the list of 10 classified. The program also maintains, in another list (20 positions), the waiting list, which contains the candidates, but exceeding the number of places (if any give up, it will be called one on the waiting list). The waiting list can have up to 20 candidates.
The program should request the applicant's number and say:
(a) if it has been sorted, or
(b) If it is on the waiting list, in this case, indicate where in the queue it is, or
(c) If it was not approved.
Example. Are the classified: 20 32 01 14 99 34 21 02 15 07
Be the waiting list (value -1 means there is no candidate): 08 04 10 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
Examples of queries: Entrance exit 01 "classified" 04 "number 2 on the waiting list 97 "not approved"
What I was able to do:
numeroCandidato = int(input("Entre com o numero do candidato: "))
classificados = [20,32,1,14,99,34,21,2,15,7]
listaDeEspera = [8, 4, 10]
if numeroCandidato not in classificados:
print("nao aprovado")