while True:
    a=input("enter a letter")
    if a not in['q','Q']:
        print("loop")
    else:
        print("loop ends")
        break

97d50df636ad6e4fcf43f21ce7869bef2c0eba46
<mask token>

while True:
    a = input('enter a letter')
    if a not in ['q', 'Q']:
        print('loop')
    else:
        print('loop ends')
        break

while True:
    a=input("enter a letter")
    if a not in['q','Q']:
        print("loop")
    else:
        print("loop ends")
        break
