nota = -1
while nota < 0 or nota > 10:
nota = int(input("Informe a nota entre 0 e 10: "))
if nota < 0 or nota > 10:
print("Valor inválido")
I need to include in this validation code for, if the user types string (a, b, c, d, e, f ...) or special character, it shows error and requests the integer again.