I'm trying to create a constraint so that the "lettera" input variable is a letter of the alphabet between a and h on this code *1 but I think there's a better way to write the condition for the loop.
Thanks if someone could help me figuring out how re-write it smaller.
*1
while (lettera != 'a' and lettera != 'b' and lettera != 'c' and lettera != 'd' and lettera != 'e' and lettera != 'f' and lettera != 'g' and lettera != 'h'):
lettera= input('Inserisci un valore lettera a-h ')
while lettera not in {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'}: